Compare commits

...

2 Commits

Author SHA1 Message Date
9595bedd8e Add support for https and http api url environment variable
All checks were successful
continuous-integration/drone/push Build is passing
2025-06-27 19:50:42 +02:00
af661632cc Add docker dns resolver 2025-06-27 19:50:27 +02:00
2 changed files with 10 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ events { }
http {
include mime.types;
resolver 8.8.8.8 8.8.4.4 1.1.1.1;
resolver 8.8.8.8 8.8.4.4 1.1.1.1 127.0.0.11;
include /etc/nginx/conf.d/webserver.conf;
}

View File

@@ -1,8 +1,16 @@
map ${services__Api__https__0} ${DOLLAR}apiUrl {
~.+ ${services__Api__https__0};
}
map ${services__Api__http__0} ${DOLLAR}apiUrl {
~.+ ${services__Api__http__0};
}
server {
listen 80;
location ~ ^/api/(.*) {
proxy_pass ${services__Api__https__0}/$1;
proxy_pass ${DOLLAR}apiUrl/${DOLLAR}1;
}
location / {