Update reverse proxy nginx

This commit is contained in:
Ozzie Isaacs 2018-04-07 14:19:16 +02:00 committed by GitHub
parent 7a20c14dea
commit ee4ec8b122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,13 +121,13 @@ http {
server 127.0.0.1:8083; server 127.0.0.1:8083;
} }
server { server {
location /calibre-web { location /calibre {
proxy_bind $server_addr; proxy_bind $server_addr;
proxy_pass http://127.0.0.1:8083; proxy_pass http://127.0.0.1:8083;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme; proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /calibre-web; proxy_set_header X-Script-Name /calibre;
} }
} }
} }