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; } location / { root /usr/share/nginx/html; try_files ${DOLLAR}uri ${DOLLAR}uri/ /index.html =404; } }