2025-06-27 20:23:29 +02:00
|
|
|
map "write-something-here-so-it-is-not-empty" ${DOLLAR}httpsUrl {
|
|
|
|
|
default "${services__Api__https__0}";
|
2025-06-27 19:50:42 +02:00
|
|
|
}
|
|
|
|
|
|
2025-06-27 20:23:29 +02:00
|
|
|
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;
|
2025-06-27 19:50:42 +02:00
|
|
|
}
|
|
|
|
|
|
2025-06-24 19:12:29 +02:00
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
|
|
|
|
|
location ~ ^/api/(.*) {
|
2025-06-27 19:50:42 +02:00
|
|
|
proxy_pass ${DOLLAR}apiUrl/${DOLLAR}1;
|
2025-06-24 19:12:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
try_files ${DOLLAR}uri ${DOLLAR}uri/ /index.html =404;
|
|
|
|
|
}
|
|
|
|
|
}
|