aboutsummaryrefslogtreecommitdiff
path: root/nginx.conf
blob: 403bfe826a4cd3de862cf64395eb5dfa99dd4477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
user nobody;
daemon off;

events {}

http {
	server {
		listen 2080 default_server;
		server_name localhost;

		location / {
			proxy_pass http://localhost:3000;
		}

		location /api {
			proxy_pass http://localhost:5000/;
		}

		location /socket.io {
			# include proxy_params;
			proxy_http_version 1.1;
			proxy_buffering off;
			proxy_set_header Upgrade $http_upgrade;
			proxy_set_header Connection "Upgrade";
			proxy_pass http://localhost:5000/socket.io;
		}
	}
}