Skip to content

Latest commit

 

History

History
93 lines (93 loc) · 2.13 KB

server.org

File metadata and controls

93 lines (93 loc) · 2.13 KB

Server

HTTP (nginx)

# install docker
xi docker docker-compose

Git

#!/bin/sh
# /etc/sv/git-daemon/run
exec chpst -u username:username git daemon \
     --reuseaddr \
     --base-path=/home/username/git/repo \
     /home/username/git/repo
cd $HOME/git/repo
mkdir reponame.git && cd $_
git init --bare --shared=group
touch git-daemon-export-ok
vim decription owner url
# change denyNonFastforwards to false
vim config

Static Git Page

Install stagit and add repo/.git/hooks/post-receive

WebDAV (rclone)

#!/bin/sh
# /etc/sv/rclone-webdav/run
exec rclone serve webdav \
     --addr domain.tld:1234 \
     --user username \
     --pass password \
     --cert /etc/letsencrypt/live/domain.tld/fullchain.pem \
     --key /etc/letsencrypt/live/domain.tld/privkey.pem \
     /home/username/webdav 2>&1

Pastebin (fiche)

/etc/sv/fiche/run

#!/bin/sh
exec chpst -u _fiche:_fiche fiche \
     -S -d domain.tld/pastebin \
     -o /var/tmp/fiche \
     -l /var/log/fiche/log

IRC Network Bouncer (znc)

znc

Music Radio (vlc)

/etc/sv/vlc-stream/run
#!/bin/sh
 exec chpst -u username:username cvlc \
     /home/username/music \
     ':sout=#http{mux=ogg,dst=:12345/}' ':no-sout-all' ':sout-keep' \
     --intf \
     http 1>/dev/null