From 933031cdbc9f8b43ee61d063d4830b3aea363094 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Thu, 7 Feb 2019 21:06:26 +0100 Subject: [PATCH] Destroyed ReverseProxy (markdown) --- ReverseProxy.md | 57 ------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 ReverseProxy.md diff --git a/ReverseProxy.md b/ReverseProxy.md deleted file mode 100644 index 45bc79a..0000000 --- a/ReverseProxy.md +++ /dev/null @@ -1,57 +0,0 @@ -## Reverse Proxy - -Reverse proxy configuration examples for apache and nginx to use Calibre-Web: - -nginx configuration for a local server listening on port 8080, mapping Calibre-Web to /calibre: - -``` -http { - upstream calibre { - server 127.0.0.1:8083; - } - server { - client_max_body_size 20M; - location /calibre { - proxy_bind $server_adress; - 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; - proxy_set_header X-Scheme $scheme; - proxy_set_header X-Script-Name /calibre; - } - } -} -``` -*Note: If using SSL in your reverse proxy on a non-standard port (e.g.12345), 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: - -The following modules have to be activated: headers, proxy, rewrite. -``` -Listen 443 - - - SSLEngine on - SSLProxyEngine on - SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL - SSLCertificateFile "C:\Apache24\conf\ssl\test.crt" - SSLCertificateKeyFile "C:\Apache24\conf\ssl\test.key" - - - RequestHeader set X-SCRIPT-NAME /calibre-web - RequestHeader set X-SCHEME https - ProxyPass http://localhost:8083/ - ProxyPassReverse http://localhost:8083/ - - -``` - -## (Optional) SSL Configuration - -For configuration of calibre-web as SSL Server go to the Config page in the Admin section. Enter the certfile- and keyfile-location, optionally change port to 443 and press submit. -Afterwards the server can only be accessed via SSL. In case of a misconfiguration (wrong/invalid files) both files can be overridden via command line options --c [certfile location] -k [keyfile location] -By using "" as file locations the server runs as non SSL server again. The correct file path can than be entered on the Config page. After the next restart without command line options the changed file paths are applied. \ No newline at end of file