1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-09-01 10:27:58 +00:00

Merge remote-tracking branch 'reverseproxy/master'

This commit is contained in:
OzzieIsaacs
2018-07-07 13:38:36 +02:00

View File

@@ -131,8 +131,9 @@ http {
server 127.0.0.1:8083;
}
server {
client_max_body_size 20M;
location /calibre {
proxy_bind $server_addr;
proxy_bind http://calibre;
proxy_pass http://127.0.0.1:8083;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -142,6 +143,10 @@ http {
}
}
```
*Note: If using SSL in your reverse proxy on a non-standard port, the following proxy_redirect line may be required:*
```
proxy_redirect http://$host/ https://$host:12345/;
```
Apache 2.4 configuration for a local server listening on port 443, mapping calibre web to /calibre-web: