26 lines
680 B
Plaintext
26 lines
680 B
Plaintext
upstream core_api {
|
|
server app_modumfiscal-api.app-net:8090;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name app.modumfiscal.com.br *.modumfiscal.com.br;
|
|
|
|
location /api/ {
|
|
proxy_pass http://core_api;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $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;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://app_modumfiscal-front.app-net:80;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
}
|