examples and DNS_RESOLVERS fix

This commit is contained in:
bunkerity
2020-10-18 01:41:29 +02:00
parent 81cff3648c
commit 34254a09e9
11 changed files with 100 additions and 20 deletions

View File

@@ -0,0 +1,12 @@
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
if ($host = app1.website.com) {
proxy_pass http://app1:3000$request_uri;
}
if ($host = app2.website.com) {
proxy_pass http://app2$request_uri;
}
}