feat: adiciona portal na stack e nginx de prod
This commit is contained in:
parent
1823792e8e
commit
b2a541d7c6
@ -6,6 +6,10 @@ upstream frontend {
|
||||
server app_modumfiscal-front.app-net:80;
|
||||
}
|
||||
|
||||
upstream portal {
|
||||
server app_portal-modumfiscal-web.app-net:3000;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
@ -36,3 +40,21 @@ server {
|
||||
rewrite ^ /index.html break;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name portal-tutoia.modumfiscal.com.br;
|
||||
|
||||
location / {
|
||||
proxy_pass http://portal;
|
||||
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;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user