Files
vegasco/src/Vegasco-Web/webserver.conf.template

28 lines
579 B
Plaintext
Raw Normal View History

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;
}
2025-06-24 19:12:29 +02:00
server {
listen 80;
location ~ ^/api/(.*) {
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;
}
}