mirror of
https://git.anonymousland.org/anonymousland/infrastructure.git
synced 2025-01-22 11:41:01 -05:00
31 lines
828 B
Plaintext
31 lines
828 B
Plaintext
|
## Version 2021/04/27 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/default
|
||
|
|
||
|
#error_page 502 /502.html;
|
||
|
|
||
|
# redirect all traffic to https
|
||
|
#server {
|
||
|
# listen 80 default_server;
|
||
|
# listen [::]:80 default_server;
|
||
|
# server_name _;
|
||
|
# return 301 https://$host$request_uri;
|
||
|
#}
|
||
|
|
||
|
# main server block
|
||
|
server {
|
||
|
listen 443 ssl http2 default_server;
|
||
|
listen [::]:443 ssl http2 default_server;
|
||
|
|
||
|
server_name _;
|
||
|
|
||
|
# enable subfolder method reverse proxy confs
|
||
|
include /config/nginx/proxy-confs/*.subfolder.conf;
|
||
|
|
||
|
# all ssl related config moved to ssl.conf
|
||
|
include /config/nginx/ssl.conf;
|
||
|
}
|
||
|
|
||
|
# enable subdomain method reverse proxy confs
|
||
|
include /config/nginx/proxy-confs/*.subdomain.conf;
|
||
|
# enable proxy cache for auth
|
||
|
proxy_cache_path cache/ keys_zone=auth_cache:10m;
|