Skip to content

Instantly share code, notes, and snippets.

View DerEnderKeks's full-sized avatar

DerEnderKeks DerEnderKeks

View GitHub Profile
#!/bin/bash
##
# File:
# nginx-modsite
# Description:
# Provides a basic script to automate enabling and disabling websites found
# in the default configuration directories:
# /etc/nginx/sites-available and /etc/nginx/sites-enabled
# For easy access to this script, copy it into the directory:
@DerEnderKeks
DerEnderKeks / yanius.service
Created April 5, 2017 15:44
Yanius 2.x Systemd unit file
[Unit]
Description=Yanius
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStart=/usr/local/bin/docker-compose -f /opt/Yanius/docker-compose.yml up
ExecStop=/usr/local/bin/docker-compose -f /opt/Yanius/docker-compose.yml stop
@DerEnderKeks
DerEnderKeks / Dockerfile
Created April 5, 2017 15:43
Yanius 2.x Dockerfile
FROM node:6.7
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
@DerEnderKeks
DerEnderKeks / docker-compose.yml
Created April 5, 2017 15:42
Yanius 2.x docker-compose.yml
version: '3'
services:
web:
build: .
ports:
- "56792:56792"
volumes:
- ./upload:/usr/src/app/upload
- ./config:/usr/src/app/config
db:
{
"Name": "Yanius",
"RequestType": "POST",
"RequestURL": "http(s)://your.domain/api/upload",
"FileFormName": "file",
"Arguments": {
"apikey": "<your api key>"
},
"ResponseType": "Text",
"URL": "$json:url$"

Keybase proof

I hereby claim:

  • I am DerEnderKeks on github.
  • I am derenderkeks (https://keybase.io/derenderkeks) on keybase.
  • I have a public key whose fingerprint is F90B B31F 042C EC81 480C 2A38 059C 8498 1DEE BA18

To claim this, I am signing this object: