Add support for https and http api url environment variable
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:
@@ -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 / {
|
||||
|
||||
Reference in New Issue
Block a user