From 8d4ae30224077be001ce2a77d4c9445370bf1245 Mon Sep 17 00:00:00 2001 From: ThompsonNye Date: Sat, 28 Jun 2025 16:54:14 +0200 Subject: [PATCH] Just go with one environment variable --- src/Vegasco-Web/webserver.conf.template | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/Vegasco-Web/webserver.conf.template b/src/Vegasco-Web/webserver.conf.template index 65c6702..480e98a 100644 --- a/src/Vegasco-Web/webserver.conf.template +++ b/src/Vegasco-Web/webserver.conf.template @@ -1,24 +1,8 @@ -map "write-something-here-so-it-is-not-empty" ${DOLLAR}httpsUrl { - default "${services__Api__https__0}"; -} - -map "write-something-here-so-it-is-not-empty" ${DOLLAR}httpUrl { - default "${services__Api__http__0}"; -} - -map ${DOLLAR}httpUrl ${DOLLAR}apiUrl { - ~(.+) ${DOLLAR}1; -} - -map ${DOLLAR}httpsUrl ${DOLLAR}apiUrl { - ~(.+) ${DOLLAR}1; -} - server { listen 80; location ~ ^/api/(.*) { - proxy_pass ${DOLLAR}apiUrl/${DOLLAR}1; + proxy_pass ${apiUrl}/${DOLLAR}1; } location / {