forked from UniPiTechnology/evok
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-nginx.conf
56 lines (45 loc) · 1.02 KB
/
docker-nginx.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
upstream evok {
server evok:8080;
}
server {
listen 80 default_server;
server_name _;
#ssl on;
#ssl_certificate /etc/nginx/democert.pem;
#ssl_certificate_key /etc/nginx/democert.key;
#access_log /var/log/evok.access.log;
access_log off;
root /var/www/evok;
location / {
index index.html;
}
location /favicon.ico {
alias /var/www/evok/favicon.ico;
}
location /ws {
proxy_pass http://evok;
proxy_set_header Host $host:$server_port;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 180;
}
location /rest {
proxy_pass http://evok;
proxy_set_header Host $host:$server_port;
}
location /json {
proxy_pass http://evok;
proxy_set_header Host $host:$server_port;
}
location /bulk {
proxy_pass http://evok;
proxy_set_header Host $host:$server_port;
}
location /rpc {
proxy_pass http://evok;
proxy_set_header Host $host:$server_port;
}
}