From 5d47cae6b0aa064f777cf828bc23b8644277891c Mon Sep 17 00:00:00 2001 From: Gabriel Date: Fri, 1 May 2026 23:38:08 +0000 Subject: [PATCH] atualizacao ng --- nginx/conf.d/modumfiscal.conf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/nginx/conf.d/modumfiscal.conf b/nginx/conf.d/modumfiscal.conf index f80074a..1138e36 100644 --- a/nginx/conf.d/modumfiscal.conf +++ b/nginx/conf.d/modumfiscal.conf @@ -2,6 +2,10 @@ upstream core_api { server app_modumfiscal-api.app-net:8090; } +upstream frontend { + server app_modumfiscal-front.app-net:80; +} + server { listen 80; listen [::]:80; @@ -17,9 +21,18 @@ server { } location / { - proxy_pass http://app_modumfiscal-front.app-net:80; + proxy_pass http://frontend; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; + proxy_intercept_errors on; + error_page 404 = @fallback; + } + + location @fallback { + proxy_pass http://frontend; + proxy_http_version 1.1; + proxy_set_header Host $host; + rewrite ^ /index.html break; } }