Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # redirect all traffic to https
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name _;
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl http2 default_server;
- listen [::]:443 ssl http2 default_server;
- root /config/www;
- index index.html index.htm index.php;
- server_name _;
- # enable subfolder method reverse proxy confs
- include /config/nginx/proxy-confs/*.subfolder.conf;
- # Tell search engines not to crawl/add this domain
- add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
- # Show real referring IP's in logs, rather than only the Docker network IP
- # Source: https://github.com/linuxserver/docker-swag/issues/55#issuecomment-754623561
- #set_real_ip_from 172.0.0.0/8;
- set_real_ip_from 10.0.0.0/24;
- real_ip_header X-Forwarded-For;
- # all ssl related config moved to ssl.conf
- include /config/nginx/ssl.conf;
- client_max_body_size 0;
- }
- # 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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement