Skip to content

Instantly share code, notes, and snippets.

View filharvey's full-sized avatar

Phil Harvey filharvey

View GitHub Profile
@filharvey
filharvey / default.conf
Created June 26, 2019 22:17 — forked from timetocode/default.conf
Nginx config and ubuntu systemd services for hosting multiple game instances on ports 8001 through 8005, proxied from urls like wss://subdomain.domain.io/1 through wss://subdomain.domain.io/5; can also remove the ssl and listen on port 80 instead. The service file is an example, but creating 5 called instance1.service through instance5.service a…
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 443 ssl;
ssl_certificate /srv/certs/fullchain.pem;
ssl_certificate_key /srv/certs/privkey.pem;