Fix support for https and http endpoints
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-06-27 20:23:29 +02:00
parent 9595bedd8e
commit 02e7ed7030
2 changed files with 14 additions and 4 deletions

View File

@@ -12,6 +12,8 @@ RUN rm /etc/nginx/conf.d/*
ENV DOLLAR=$ ENV DOLLAR=$
WORKDIR /usr/share/nginx/html WORKDIR /usr/share/nginx/html
ENV services__Api__https__0=""
ENV services__Api__http__0=""
COPY --from=build /usr/local/app/dist/Vegasco-Web/browser . COPY --from=build /usr/local/app/dist/Vegasco-Web/browser .
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf
COPY webserver.conf.template /etc/nginx/templates/webserver.conf.template COPY webserver.conf.template /etc/nginx/templates/webserver.conf.template

View File

@@ -1,9 +1,17 @@
map ${services__Api__https__0} ${DOLLAR}apiUrl { map "write-something-here-so-it-is-not-empty" ${DOLLAR}httpsUrl {
~.+ ${services__Api__https__0}; default "${services__Api__https__0}";
} }
map ${services__Api__http__0} ${DOLLAR}apiUrl { map "write-something-here-so-it-is-not-empty" ${DOLLAR}httpUrl {
~.+ ${services__Api__http__0}; default "${services__Api__http__0}";
}
map ${DOLLAR}httpUrl ${DOLLAR}apiUrl {
~(.+) ${DOLLAR}1;
}
map ${DOLLAR}httpsUrl ${DOLLAR}apiUrl {
~(.+) ${DOLLAR}1;
} }
server { server {