-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx-site.conf
58 lines (49 loc) · 1.2 KB
/
nginx-site.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
56
57
58
upstream evok {
server 127.0.0.1:8080; #port Evok runs on, change this line only if you change the port in configuration of Evok
}
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 /opt/evok/www;
location / {
index index.html;
}
location /favicon.ico {
alias /opt/evok/www/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;
}
location /version {
proxy_pass http://evok;
proxy_set_header Host $host:$server_port;
}
}