2024-11-12 20:24:01 -05:00
2024-11-12 19:35:05 -05:00
2023-09-03 10:55:55 -04:00
2024-04-15 23:36:28 -04:00
2024-11-12 20:24:01 -05:00
2024-04-15 23:36:28 -04:00
2023-12-06 11:50:36 -05:00
2024-11-12 19:35:05 -05:00
2024-11-12 19:35:05 -05:00
2023-08-04 16:05:08 -04:00
2024-04-15 23:36:28 -04:00
2024-11-12 19:35:05 -05:00
2024-11-12 19:35:05 -05:00
2024-04-15 23:36:28 -04:00
2024-11-12 19:35:05 -05:00

elster

A collection of stuff for my servers.

Getting Started

  1. Create the swag-containers network so that your containers can communicate with each other
docker network create --driver=bridge swag-containers
  1. Modify swag/run.sh to only include the SUBDOMAINS you want.

    • If you want to update them, edit swag/run.sh and then run swag/update.sh
    • For all confs under swag/config/nginx/proxy-confs or swag/config/nginx/site-confs that you do not want, append .sample to the filename.
  2. Run swag/run.sh

  3. Spin up whatever other apps you want to run!

Help

For each new reverse proxy, follow these steps:

  1. Create a new proxy-conf in swag/config/nginx/proxy-confs
    • Do this by copying your confs from swag/config/nginx/proxy-confs/subdomains to swag/config/nginx/proxy-confs
  2. Update the SUBDOMAINS env variable in swag/run.sh to include the subdomain of your service
  3. 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 be resolver 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.

Languages
HTML 87.1%
Shell 10.5%
Dockerfile 2.4%