splatoon2.ink/docker/nginx/conf.d/default.conf
2017-11-18 14:19:59 -08:00

33 lines
713 B
Plaintext

server {
listen 80 default_server;
root /usr/share/nginx/html;
index index.html;
# Docker reverse proxy IP passthrough
set_real_ip_from 172.16.0.0/12;
real_ip_header X-Real-IP;
# Log to a file as well as the main (Docker stdout) log
access_log /var/log/nginx/access.log;
access_log /logs/access.log;
# Force browsers to check for updated data
location /data/ {
add_header Cache-Control no-cache;
}
# Block access to the file used for screenshots
location = /screenshots.html {
internal;
}
}
# Redirect www to non-www
server {
listen 80;
server_name www.splatoon2.ink;
return 301 $scheme://splatoon2.ink$request_uri;
}