forked from linux/WebHosting_DMZ
api urls
pocket app soll direkt auf die API zugreifen, anstatt über eine spezielle nginx config
This commit is contained in:
1 parent
36f915c0e3
commit
0bb55a12fc
1 file changed
-18
@@ -11,24 +11,6 @@ server {
|
||||
ssl_certificate /etc/nginx/certs/lx-docker-dmz-01.psi.ch.crt;
|
||||
ssl_certificate_key /etc/nginx/private/lx-docker-dmz-01.psi.ch.key;
|
||||
|
||||
# Phonebook API
|
||||
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 / {
|
||||
|
||||
Reference in new issue
Block a user