This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| unraid:dockers:swag [2023/02/11 15:26] – [stream] dirk | unraid:dockers:swag [2023/11/25 11:32] (current) – [SWAG] dirk | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== SWAG ====== | ====== SWAG ====== | ||
| - | Secure Web Application Gateway is a rebirth of our letsencrypt docker image, a full fledged web server and reverse proxy that includes Nginx, Php7, Certbot (Let's Encrypt client) and Fail2ban. Before running this container, make sure that the url and subdomains are properly forwarded to this container' | + | Secure Web Application Gateway is a rebirth of the letsencrypt docker image, a full fledged web server and reverse proxy that includes Nginx, Php7, Certbot (Let's Encrypt client) and Fail2ban. Before running this container, make sure that the url and subdomains are properly forwarded to this container' |
| ===== Version ===== | ===== Version ===== | ||
| Line 26: | Line 26: | ||
| ===== Random Fixes ===== | ===== Random Fixes ===== | ||
| ==== stream ==== | ==== stream ==== | ||
| - | |||
| * After last update, websites would not load and had following error in swag logs:< | * After last update, websites would not load and had following error in swag logs:< | ||
| * Found fix in forums: | * Found fix in forums: | ||
| Line 33: | Line 32: | ||
| ls -al / | ls -al / | ||
| mv -v / | mv -v / | ||
| - | * restart swag. | + | * restart swag |
| + | * Found longer term fix... just update some outdated config files with the newer samples and all was well again. | ||
| + | |||
| + | ==== dashboard ==== | ||
| + | * Add variable to swag | ||
| + | * Name: Dashboard | ||
| + | * Key: DOCKER_MODS | ||
| + | * Value: linuxserver/ | ||
| + | * add CNAME for dashboard and add dashboard to swag subdomains | ||
| + | * conf file was auto added | ||
| + | * restart swag | ||
| ===== appdata/ | ===== appdata/ | ||
| Line 188: | Line 197: | ||
| } | } | ||
| </ | </ | ||
| + | ==== games.subdomain.conf ==== | ||
| + | < | ||
| + | |||
| + | server { | ||
| + | listen 443 ssl; | ||
| + | listen [::]:443 ssl; | ||
| + | |||
| + | server_name games.*; | ||
| + | |||
| + | include / | ||
| + | |||
| + | client_max_body_size 0; | ||
| + | |||
| + | #enable for ldap auth, fill in ldap details in ldap.conf | ||
| + | #include / | ||
| + | |||
| + | # enable for Authelia | ||
| + | #include / | ||
| + | |||
| + | location / { | ||
| + | #enable the next two lines for http auth | ||
| + | #auth_basic " | ||
| + | # | ||
| + | |||
| + | #enable the next two lines for ldap auth | ||
| + | # | ||
| + | #error_page 401 =200 /ldaplogin; | ||
| + | |||
| + | # enable for Authelia | ||
| + | #include / | ||
| + | |||
| + | include / | ||
| + | resolver 127.0.0.11 valid=30s; | ||
| + | set $upstream_app games; | ||
| + | set $upstream_port 8080; | ||
| + | set $upstream_proto http; | ||
| + | proxy_pass $upstream_proto:// | ||
| + | |||
| + | } | ||
| + | }</ | ||
| ==== home.subdomain.conf ==== | ==== home.subdomain.conf ==== | ||
| * only works if hoobs is installed on a vm | * only works if hoobs is installed on a vm | ||
| Line 665: | Line 714: | ||
| } | } | ||
| </ | </ | ||
| - | ==== www.subdomain.conf ==== | + | ==== www.subdomain.conf |
| + | < | ||
| + | |||
| + | server { | ||
| + | listen 443 ssl; | ||
| + | listen [::]:443 ssl; | ||
| + | |||
| + | server_name www.*; | ||
| + | |||
| + | include / | ||
| + | |||
| + | client_max_body_size 0; | ||
| + | |||
| + | #enable for ldap auth, fill in ldap details in ldap.conf | ||
| + | #include / | ||
| + | |||
| + | # enable for Authelia | ||
| + | #include / | ||
| + | |||
| + | location / { | ||
| + | #enable the next two lines for http auth | ||
| + | #auth_basic " | ||
| + | # | ||
| + | |||
| + | #enable the next two lines for ldap auth | ||
| + | # | ||
| + | #error_page 401 =200 / | ||
| + | |||
| + | # enable for Authelia | ||
| + | #include / | ||
| + | |||
| + | include / | ||
| + | resolver 127.0.0.11 valid=30s; | ||
| + | set $upstream_app website; | ||
| + | set $upstream_port 8080; | ||
| + | set $upstream_proto http; | ||
| + | proxy_pass $upstream_proto:// | ||
| + | |||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | ==== www.subdomain.conf OLD version | ||
| < | < | ||