mirror of
https://github.com/misenhower/splatoon2.ink.git
synced 2026-04-30 03:16:48 -05:00
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.
28 lines
594 B
Plaintext
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;
|
|
}
|