atualizacao ng
This commit is contained in:
parent
5c4c089072
commit
5d47cae6b0
@ -2,6 +2,10 @@ upstream core_api {
|
|||||||
server app_modumfiscal-api.app-net:8090;
|
server app_modumfiscal-api.app-net:8090;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upstream frontend {
|
||||||
|
server app_modumfiscal-front.app-net:80;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
@ -17,9 +21,18 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://app_modumfiscal-front.app-net:80;
|
proxy_pass http://frontend;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user