Debian Codegraph @

example/deployment/nginx/nginx.conf

raw
1 daemon off;
2
3 events {
4 }
5
6 http {
7 server {
8 listen localhost:8080;
9
10 location / {
11 proxy_http_version 1.1;
12 proxy_pass http://websocket;
13 proxy_set_header Connection $http_connection;
14 proxy_set_header Upgrade $http_upgrade;
15 }
16 }
17
18 upstream websocket {
19 least_conn;
20 server unix:websockets-test_00.sock;
21 server unix:websockets-test_01.sock;
22 server unix:websockets-test_02.sock;
23 server unix:websockets-test_03.sock;
24 }
25 }