Just go with one environment variable
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-06-28 16:54:14 +02:00
parent 02e7ed7030
commit 8d4ae30224

View File

@@ -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 { server {
listen 80; listen 80;
location ~ ^/api/(.*) { location ~ ^/api/(.*) {
proxy_pass ${DOLLAR}apiUrl/${DOLLAR}1; proxy_pass ${apiUrl}/${DOLLAR}1;
} }
location / { location / {