]> Untitled Git - go.git/blob - web/nginx.conf
Hotfix for high-frequency init polling
[go.git] / web / nginx.conf
1 worker_processes 1;
2
3 events {
4     worker_connections 1024;
5 }
6
7 http {
8     server {
9         server_name go.purplebirdman.com;
10
11         location / {
12             root /www/data;
13         }
14
15         location /ws {
16             proxy_pass http://socket:3000;
17             # websocket magic
18             proxy_http_version 1.1;
19             proxy_set_header Upgrade $http_upgrade;
20             proxy_set_header Connection "Upgrade";
21             proxy_set_header Host $host;
22         }
23     }
24 }