diff --git a/src/Vegasco-Web/webserver.conf.template b/src/Vegasco-Web/webserver.conf.template index 095c2c1..69d9a51 100644 --- a/src/Vegasco-Web/webserver.conf.template +++ b/src/Vegasco-Web/webserver.conf.template @@ -1,8 +1,16 @@ +map ${services__Api__https__0} ${DOLLAR}apiUrl { + ~.+ ${services__Api__https__0}; +} + +map ${services__Api__http__0} ${DOLLAR}apiUrl { + ~.+ ${services__Api__http__0}; +} + server { listen 80; location ~ ^/api/(.*) { - proxy_pass ${services__Api__https__0}/$1; + proxy_pass ${DOLLAR}apiUrl/${DOLLAR}1; } location / {