splatoon2.ink/docker/nginx/conf.d/default.conf
Unknown 918012c65d Add nginx container for use with nginx-proxy
This makes administration a little easier for me. It'll also help if I need an actual API back end for this site in the future.
2017-10-27 17:32:44 -07:00

28 lines
594 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;
# 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;
}