/
nginx.conf
49 lines (38 loc) · 1.16 KB
/
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
proxy_cache_path /var/cache/nginx/vc_cache levels=1:2 keys_zone=vc_cache:50m max_size=1000m inactive=1w use_temp_path=off;
server {
listen 80;
listen [::]:80;
server_name localhost;
access_log off;
rewrite ^/csvtest/upload/$ https://admin.testzone.eqar.eu/upload-csv permanent;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /usr/share/nginx/html;
try_files $uri =404;
}
location /reports/ {
root /usr/share/nginx/html;
try_files $uri =404;
}
location / {
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering on;
proxy_connect_timeout 75;
proxy_read_timeout 300;
proxy_pass http://api:8000;
client_max_body_size 50m;
location /connectapi/v1/letstrust {
proxy_cache vc_cache;
proxy_ignore_headers Set-Cookie;
proxy_hide_header Set-Cookie;
proxy_cache_use_stale error timeout updating http_500 http_503;
proxy_cache_background_update on;
proxy_cache_lock on;
proxy_pass http://api:8000;
}
}
}