From 712efa55c9ffab82bc2e3f173cbf260a7941ce77 Mon Sep 17 00:00:00 2001 From: skeris Date: Wed, 23 Apr 2025 01:47:25 +0300 Subject: [PATCH] fix front reload --- default.conf | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/default.conf b/default.conf index eaef87a..d69ee88 100644 --- a/default.conf +++ b/default.conf @@ -1,4 +1,5 @@ server { + resolver 10.89.1.1 valid=10s; root /usr/share/nginx/html; access_log syslog:server=10.8.0.7:514,tag=nginx_access main; index index.html index.htm index.nginx-debian.html; @@ -666,30 +667,34 @@ server { location / { + add_header Access-Control-Allow-Origin $http_origin always; if ($host = squiz.pena.digital) { + set $backend "squiz"; + proxy_pass http://$backend; - proxy_pass http://squiz; } if ($host = s.hbpn.link) { - add_header Access-Control-Allow-Origin $http_origin always; - proxy_pass http://respondent; + set $backend "respondent"; +proxy_pass http://$backend; } if ($host = sdocs.pena.digital) { - proxy_pass http://docs; + set $backend "docs"; +proxy_pass http://$backend; } if ($host = slinks.pena.digital) { + set $backend "dwarfener"; +proxy_pass http://$backend; - proxy_pass http://dwarfener; } @@ -697,29 +702,33 @@ server { if ($host = newerait.pena.digital) { + set $backend "squizlanding"; +proxy_pass http://$backend; - proxy_pass http://squizlanding; } if ($host = smetrica.pena.digital) { + set $backend "metrica"; +proxy_pass http://$backend; - proxy_pass http://metrica; } if ($host = services.pena.digital) { + set $backend "services"; +proxy_pass http://$backend; - proxy_pass http://services; } if ($host = shub.pena.digital) { + set $backend "hub"; +proxy_pass http://$backend; - proxy_pass http://hub; } if ($host = nastya.pena) {