-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathnginx.conf
More file actions
44 lines (37 loc) · 1.59 KB
/
Copy pathnginx.conf
File metadata and controls
44 lines (37 loc) · 1.59 KB
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 {
gzip on;
gzip_disable "msie6";
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/javascript text/xml text/event-stream application/xml application/rss+xml application/atom+xml application/rdf+xml;
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
expires off;
listen 80;
listen [::]:80;
client_max_body_size 5000M;
server_name _;
location /notificationsink/ {
proxy_pass http://notificationsink:3005/;
}
location / {
if ($request_uri ~* ".(ico|css|js|gif|jpe?g|png)$") {
expires 30d;
access_log off;
add_header Pragma public;
add_header Cache-Control "public";
break;
}
proxy_pass http://cc-3102:3002;
proxy_set_header Connection '';
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
chunked_transfer_encoding on;
proxy_buffering off;
proxy_cache off;
proxy_request_buffering off;
proxy_read_timeout 5400s;
proxy_send_timeout 5400s;
proxy_connect_timeout 5400s;
send_timeout 5400s;
uwsgi_read_timeout 30m;
}
}