-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault-dev.conf
41 lines (33 loc) · 1.08 KB
/
default-dev.conf
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
29
30
31
32
33
34
35
36
37
38
39
40
41
upstream barrenchat-api {
server barrenschat-api-1:9000;
server barrenschat-api-2:9000;
}
server {
server_name engineerbeard.com;
listen 80;
listen [::]:80;
gzip on;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml application/json;
gzip_proxied any;
gzip_comp_level 9;
#gzip_min_length 1000;
root /usr/share/nginx/html;
location = / {
index index.html;
}
location = /version {
proxy_pass http://barrenchat-api/version;
}
# pass the request to the node.js server with the correct headers
location = /bchatws {
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header Host $http_host;
# proxy_set_header X-NginX-Proxy true;
proxy_pass http://barrenchat-api/;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}