forked from linux/WebHosting_DMZ
Merge pull request 'Update conf.d/pocketapp.conf' (#65) from pombas_n/WebHosting_DMZ:pombas_n-patch-2 into main
Reviewed-on: linux/WebHosting_DMZ#65
This commit is contained in:
commit
36f915c0e3
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