Init multiplayer
All checks were successful
Deploy Feature / deploy-feature (push) Successful in 28s
All checks were successful
Deploy Feature / deploy-feature (push) Successful in 28s
This commit is contained in:
27
deploy/nginx/jeopardy.toppit.net.conf
Normal file
27
deploy/nginx/jeopardy.toppit.net.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name jeopardy.toppit.net;
|
||||
|
||||
root /www/jeopardy;
|
||||
index index.html;
|
||||
|
||||
# SPA routing for Vue Router / client-side routes
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# Realtime session API + websocket
|
||||
location /realtime/ {
|
||||
proxy_pass http://127.0.0.1:8787/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/jeopardy.toppit.net/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/jeopardy.toppit.net/privkey.pem;
|
||||
}
|
||||
Reference in New Issue
Block a user