|
| 1 | +## Version 2023/06/27 |
| 2 | +# make sure that your dns has a cname set for linkstack and that your linkstack container is not using a base url |
| 3 | + |
| 4 | +server { |
| 5 | + listen 443 ssl; |
| 6 | + listen [::]:443 ssl; |
| 7 | + |
| 8 | + server_name linkstack.*; |
| 9 | + |
| 10 | + include /config/nginx/ssl.conf; |
| 11 | + |
| 12 | + client_max_body_size 0; |
| 13 | + |
| 14 | + # enable for ldap auth (requires ldap-location.conf in the location block) |
| 15 | + #include /config/nginx/ldap-server.conf; |
| 16 | + |
| 17 | + # enable for Authelia (requires authelia-location.conf in the location block) |
| 18 | + #include /config/nginx/authelia-server.conf; |
| 19 | + |
| 20 | + # enable for Authentik (requires authentik-location.conf in the location block) |
| 21 | + #include /config/nginx/authentik-server.conf; |
| 22 | + |
| 23 | + location / { |
| 24 | + # enable the next two lines for http auth |
| 25 | + #auth_basic "Restricted"; |
| 26 | + #auth_basic_user_file /config/nginx/.htpasswd; |
| 27 | + |
| 28 | + # enable for ldap auth (requires ldap-server.conf in the server block) |
| 29 | + #include /config/nginx/ldap-location.conf; |
| 30 | + |
| 31 | + # enable for Authelia (requires authelia-server.conf in the server block) |
| 32 | + #include /config/nginx/authelia-location.conf; |
| 33 | + |
| 34 | + # enable for Authentik (requires authentik-server.conf in the server block) |
| 35 | + #include /config/nginx/authentik-location.conf; |
| 36 | + |
| 37 | + include /config/nginx/proxy.conf; |
| 38 | + include /config/nginx/resolver.conf; |
| 39 | + set $upstream_app linkstack; |
| 40 | + set $upstream_port 443; |
| 41 | + set $upstream_proto https; |
| 42 | + proxy_pass $upstream_proto://$upstream_app:$upstream_port; |
| 43 | + } |
| 44 | +} |
0 commit comments