diff --git a/default.conf b/default.conf index eaef87a..e920abf 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) {