diff --git a/prod/nginx/conf.d/modumfiscal.conf b/prod/nginx/conf.d/modumfiscal.conf index 75b9b9b..d7fb28d 100644 --- a/prod/nginx/conf.d/modumfiscal.conf +++ b/prod/nginx/conf.d/modumfiscal.conf @@ -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; + } +}