-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathnginx.dev.conf
40 lines (36 loc) · 1.16 KB
/
nginx.dev.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
events {
worker_connections 4096; ## Default: 1024
}
http {
server {
resolver 127.0.0.11 valid=30s;
include /etc/nginx/mime.types;
server_name reference-merchant;
listen 8000;
keepalive_timeout 70;
location /api/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Prefix /api/;
proxy_redirect off;
proxy_pass http://merchant-backend:5000/;
}
location /vasp/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Prefix /vasp/;
proxy_redirect off;
proxy_pass http://merchant-vasp-backend-web:5000/;
}
location / {
set $frontend_uptstream http://merchant-frontend:3000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_pass $frontend_uptstream;
}
}
}