-
Notifications
You must be signed in to change notification settings - Fork 5
/
nginx-proxy-staging.conf
43 lines (42 loc) · 1.24 KB
/
nginx-proxy-staging.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
events {}
http {
map $http_upgrade $connection_upgrade {
default Upgrade;
'' close;
}
server {
location /login {
proxy_pass http://backend:5000;
if ($request_method = POST ) {
proxy_pass https://1v-staging.parlemonde.org;
}
}
location /inscription {
proxy_pass http://backend:5000;
if ($request_method = POST ) {
proxy_pass https://1v-staging.parlemonde.org;
}
}
location /logout {
proxy_pass http://backend:5000;
if ($request_method = POST ) {
proxy_pass https://1v-staging.parlemonde.org;
}
}
location /login-sso-plm {
proxy_pass http://backend:5000;
if ($request_method = POST ) {
proxy_pass https://1v-staging.parlemonde.org;
}
}
location /api {
proxy_pass https://1v-staging.parlemonde.org;
}
location / {
proxy_pass http://backend:5000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
}
}
}