Files

64 lines
1.1 KiB
Nginx Configuration File

server {
listen 80;
server_name spill.theriise.net;
root /usr/share/nginx/html/spill;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location = /healthz {
access_log off;
return 200 "ok\n";
add_header Content-Type text/plain;
}
}
server {
listen 80;
server_name pong.theriise.net;
root /usr/share/nginx/html/pong;
index index.html;
location /ws {
proxy_pass http://lobby:8787/ws;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
try_files $uri $uri/ /index.html;
}
location = /healthz {
access_log off;
return 200 "ok\n";
add_header Content-Type text/plain;
}
}
server {
listen 80 default_server;
server_name _;
root /usr/share/nginx/html/spill;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location = /healthz {
access_log off;
return 200 "ok\n";
add_header Content-Type text/plain;
}
}