forked from linux/WebHosting_DMZ
Update conf.d/pocketapp.conf
This commit is contained in:
1 parent
9997f49ae3
commit
1556766bc1
1 file changed
+10
-7
+10
-7
@@ -13,20 +13,23 @@ server {
|
||||
|
||||
# Phonebook API
|
||||
location = /phoneapi {
|
||||
return 301 /phoneapi/;
|
||||
}
|
||||
|
||||
location /phoneapi/ {
|
||||
proxy_pass https://appeng-win-webservices.psi.ch/api/Phonebook/;
|
||||
|
||||
proxy_ssl_server_name on;
|
||||
proxy_set_header Host appeng-win-webservices.psi.ch;
|
||||
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
|
||||
location ^~ /phoneapi/ {
|
||||
proxy_pass https://appeng-win-webservices.psi.ch/api/Phonebook/;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_set_header Host appeng-win-webservices.psi.ch;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
# Pocket App
|
||||
location / {
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
|
||||
Reference in new issue
Block a user