fix 502 on restart front containers
All checks were successful
Deploy / CreateImage (push) Successful in 39s
Deploy / DeployService (push) Successful in 30s

This commit is contained in:
skeris 2025-03-27 01:18:47 +03:00
parent 7c436836a8
commit cd6e19a417

@ -78,7 +78,8 @@ server {
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type always; add_header Access-Control-Allow-Headers content-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PUT; add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PUT;
proxy_pass http://respondent; set $backend "respondent";
proxy_pass http://$backend;
} }
listen 443 ssl; # managed by Certbot listen 443 ssl; # managed by Certbot
@ -345,7 +346,8 @@ proxy_set_header Referer $host;
location / { location / {
proxy_pass http://squiz; set $backend "squiz";
proxy_pass http://$backend;
} }
listen 443 ssl; # managed by Certbot listen 443 ssl; # managed by Certbot
@ -614,7 +616,8 @@ proxy_set_header Referer $host;
location / { location / {
proxy_pass http://squiz; set $backend "squiz";
proxy_pass http://$backend;
} }
listen 443 ssl; # managed by Certbot listen 443 ssl; # managed by Certbot
@ -880,7 +883,8 @@ proxy_set_header Referer $host;
location / { location / {
proxy_pass http://squiz; set $backend "squiz";
proxy_pass http://$backend;
} }
listen 443 ssl; # managed by Certbot listen 443 ssl; # managed by Certbot
@ -890,8 +894,6 @@ proxy_set_header Referer $host;
} }
server { server {
root /usr/share/nginx/html; root /usr/share/nginx/html;
resolver 10.89.1.1 valid=2s;
access_log /var/log/nginx/dns-debug.log;
index index.html index.htm index.nginx-debian.html; index index.html index.htm index.nginx-debian.html;
server_name hub.pena.digital; # managed by Certbot server_name hub.pena.digital; # managed by Certbot
@ -1103,7 +1105,8 @@ proxy_pass_request_headers on;
proxy_pass http://10.8.0.226:8006/; proxy_pass http://10.8.0.226:8006/;
} }
location / { location / {
proxy_pass http://services; set $backend "services";
proxy_pass http://$backend;
} }
listen 443 ssl; # managed by Certbot listen 443 ssl; # managed by Certbot
@ -1143,7 +1146,8 @@ proxy_pass_request_headers on;
proxy_pass http://10.8.0.8:8006/; proxy_pass http://10.8.0.8:8006/;
} }
location / { location / {
proxy_pass http://tourizmland; set $backend "tourizmland";
proxy_pass http://$backend;
} }
listen 443 ssl; # managed by Certbot listen 443 ssl; # managed by Certbot