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