forked from ahdis/matchbox-formfiller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.conf
36 lines (32 loc) · 904 Bytes
/
default.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
server {
listen 80;
root /usr/share/nginx/html;
client_max_body_size 100m;
location = / {
return 301 ${DOMAIN}/matchbox-formfiller;
}
location /matchbox-formfiller {
alias /usr/share/nginx/html;
try_files $uri /index.html;
}
location /matchbox {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_pass ${MATCHBOX};
proxy_ssl_session_reuse off;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_redirect off;
}
location /mag-pmp {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_pass ${MAG};
proxy_ssl_session_reuse off;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_redirect off;
}
}