From 59d21b3523fad4b0c535b9c7cbf8c748a2533ba2 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 | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/default.conf b/default.conf index eaef87a..e4c3525 100644 --- a/default.conf +++ b/default.conf @@ -666,30 +666,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 +701,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) {