|
|
#1 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2020
Device: none
|
Calibre http to https nginx reverse proxy issue
I have installed calibre web server on ubuntu server and I used nginx reverse proxy to enable SSL. Please find my below mentioned calibre nginx config.
Code:
server {
listen 80;
server_name ebooks.everly.to;
location / {
proxy_buffering off;
proxy_pass http://78.46.187.23:8080$request_uri;
return 301 https://$server_name$request_uri;
}
}
server {
listen 443;
server_name ebooks.everly.to;
ssl on;
ssl_certificate /opt/certificate.crt;
ssl_certificate_key /opt/private.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
access_log /var/log/calibre-server-access.log;
error_log /var/log/calibre-server-error.log info;
proxy_set_header X-Forwarded-For $remote_addr;
location /calibre/web/ {
proxy_set_header Host $http_host;
# The line below is the key line you need:
proxy_set_header X-Scheme $scheme;
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;
proxy_intercept_errors on;
proxy_http_version 1.1;
proxy_pass http://78.46.187.23:8080;
}
}
please help me with this Last edited by PeterT; 01-19-2020 at 12:42 AM. |
|
|
|
|
|
#2 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2020
Device: none
|
bump..
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,620
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
WHy is your proxy section so complex? Just use the basic one described here: https://manual.calibre-ebook.com/server.html
And look at the logs of both nginx and the calibre server to see what the issue might be. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help: Using NGINX as reverse-proxy for Calibre | haertig | Related Tools | 5 | 11-18-2017 09:54 PM |
| Calibre-server reverse proxy issues | dom134 | Related Tools | 12 | 05-30-2016 05:39 PM |
| Nginx Calibre Proxy | Ackis | Calibre | 2 | 04-19-2016 02:48 PM |
| Aldiko + Calibre-Server + Reverse Proxy | dummkauf | Related Tools | 4 | 02-02-2016 03:55 PM |
| Content server apache reverse proxy issue | bossanova808 | Calibre | 13 | 09-16-2011 10:38 AM |