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=$
|
||||
|
||||
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 nginx.conf /etc/nginx/nginx.conf
|
||||
COPY webserver.conf.template /etc/nginx/templates/webserver.conf.template
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
map ${services__Api__https__0} ${DOLLAR}apiUrl {
|
||||
~.+ ${services__Api__https__0};
|
||||
map "write-something-here-so-it-is-not-empty" ${DOLLAR}httpsUrl {
|
||||
default "${services__Api__https__0}";
|
||||
}
|
||||
|
||||
map ${services__Api__http__0} ${DOLLAR}apiUrl {
|
||||
~.+ ${services__Api__http__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;
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
Reference in New Issue
Block a user