-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.conf
45 lines (36 loc) · 1.25 KB
/
app.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
server {
listen 8080;
server_name _;
root /opt/concord/console/dist;
access_log /opt/concord/logs/access.log main;
proxy_read_timeout 1800;
client_max_body_size 32M;
location ~ ^/(api/|logs/|forms/|events/|swagger/|metrics|resources/) {
expires off;
proxy_pass http://concord-server:8001;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
}
location /websocket {
proxy_pass http://concord-server:8001/websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location ~ ^/landing/(.*)$ {
alias /opt/concord/console/landing/$1;
}
location ~ ^/public/(.*)$ {
alias /opt/concord/console/public/$1;
}
location ~* \.(?:manifest|appcache|html?|xml|json)$ {
expires -1;
}
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
}