master
elster
A collection of stuff for my servers.
Getting Started
- Create the
swag-containersnetwork so that your containers can communicate with each other
docker network create --driver=bridge swag-containers
-
Modify
swag/run.shto only include theSUBDOMAINSyou want.- If you want to update them, edit
swag/run.shand then runswag/update.sh - For all confs under
swag/config/nginx/proxy-confsorswag/config/nginx/site-confsthat you do not want, append.sampleto the filename.
- If you want to update them, edit
-
Run
swag/run.sh -
Spin up whatever other apps you want to run!
Help
For each new reverse proxy, follow these steps:
- Create a new proxy-conf in
swag/config/nginx/proxy-confs- Do this by copying your confs from
swag/config/nginx/proxy-confs/subdomainstoswag/config/nginx/proxy-confs
- Do this by copying your confs from
- Update the
SUBDOMAINSenv variable inswag/run.shto include the subdomain of your service - Create a CNAME entry in your domain manager:
CNAME <container name>.<domain>.net <domain>.duckdns.org
If you run into 502s, read: https://docs.linuxserver.io/general/swag#502
- In most cases the contents of
/config/nginx/resolver.conf; should beresolver 127.0.0.11 valid=30s;, if this is not the case, you can delete it, and restart the container to have it regenerate.
Basic Auth
First, install htpasswd and run:
htpasswd -c /home/kevin/elster/swag/config/nginx/.htpasswd sheev
Add the following to a subdomain's conf:
auth_basic "Restricted";
auth_basic_user_file /config/nginx/.htpasswd;
Restart SWAG.
Description
stuff for my personal server
https://git.envs.net/keb/elster
89 KiB
0 Stars
1 Watchers
0 Forks
Languages
HTML
87.1%
Shell
10.5%
Dockerfile
2.4%