mirror of
https://git.anonymousland.org/anonymousland/infrastructure.git
synced 2024-10-01 08:25:45 -04:00
8d6fb20c2c
Co-authored-by: NebulaOnion <nebulaonion@tutanota.com> Reviewed-on: https://git.anonymousland.org/anonymousland/infrastructure/pulls/5
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;
|