Fix support for https and http endpoints
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user