Compare commits
2 Commits
5062887010
...
9595bedd8e
| Author | SHA1 | Date | |
|---|---|---|---|
| 9595bedd8e | |||
| af661632cc |
@@ -2,7 +2,7 @@ events { }
|
|||||||
http {
|
http {
|
||||||
include mime.types;
|
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;
|
include /etc/nginx/conf.d/webserver.conf;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
location ~ ^/api/(.*) {
|
location ~ ^/api/(.*) {
|
||||||
proxy_pass ${services__Api__https__0}/$1;
|
proxy_pass ${DOLLAR}apiUrl/${DOLLAR}1;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|||||||
Reference in New Issue
Block a user