12-28-2023, 04:39 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2023
Device: Kindle Paperwhite
|
Problems with nginx reverse proxy and calibre
I've recently set up nginx as a front end reverse proxy for all my internal servers (plex, the *arrs, calibre/calibre-web). I'm sure this is probably an nginx config question, but I'm starting here since I got all of the other subdomains to work over HTTPS using certbot and LetsEncrypt, except for calibre 7.2.
All servers run in docker containers on an Ubuntu 23.10 (mantic) host and nginx version 1.24.0-1ubuntu1, and are cleanly accessible from the internal network with no problems without the proxy...the host they run on is not using a firewall at this time (the router is, of course). With ports 443, 8080, 8081, and 8181 open on the router (the latter 3 opened during debugging, probably unnecessary) I get to the server, but I get a KasmVNC error: (domain name blacked out for privacy) Here's my basic nginx configuration for this subdomain, based on the Calibre documentation, but with SSL configuration added: The Chrome developer tools show the following: I don't know if this is a red herring or if there's websocket configuration I need to add (that is not mentioned in the documentation though), but that would be new to me, so i could use some assistance if so. I suspect this may be the issue, since trying Calibre 6.x and 5.x versions give similar errors. I was able to set up the proxy to forward to the content server instead (port 8081), but that's not the interface I'm looking for. I use Calibre-web for that functionality, and am looking for the main Calibre UI for full remote library maintenance when on the go Thanks for any ideas, and let me know if more information is needed. |
12-28-2023, 11:13 PM | #2 |
creator of calibre
Posts: 44,573
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I have no idea what that is. There is no main.bundle.js in the calibre content server.
|
Advert | |
|
01-01-2024, 03:25 AM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2023
Device: Kindle Paperwhite
|
I was right...it was the websockets. I needed to add the following to the location block for my nginx virtual server:
proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; |
04-26-2024, 10:24 PM | #4 |
Junior Member
Posts: 1
Karma: 10
Join Date: Apr 2024
Device: Kobo Libra
|
Dead post but commenting to say I was having the same problem and this was the solution.
I did not seem to need 2 of the directives mentioned and it worked fine with only proxy_set_header Upgrade $http_upgrade; I could remove the following 2 and still load calibre fine: proxy_http_version 1.1; proxy_set_header Connection $http_connection; This was using lscr.io/linuxserver/calibre and I just used NGINX 1.18 from the default ubuntu repo (on ubuntu focal) Cheers HuckinFappy |
05-09-2024, 07:24 AM | #5 |
Junior Member
Posts: 6
Karma: 10
Join Date: Dec 2020
Device: Kobo Clara HD
|
Adding that I further needed to change the KasmVNC settings (in the web UI where the error is) so that the "websocket path" value was "calibre/websockify" (i.e. prepending my nginx proxy path) instead of the default value "websockify". Otherwise the web GUI was trying to connect to domain.com/websockify instead of domain.com/calibre/websockify.
|
Advert | |
|
05-13-2024, 12:40 AM | #6 |
Junior Member
Posts: 5
Karma: 10
Join Date: May 2024
Device: kindle paperwhite
|
|
05-13-2024, 02:24 AM | #7 |
Bibliophagist
Posts: 40,647
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Not sure if posting in a thread where the last post from 2023 was on 2023-Dec-31 qualifies as necro posting. And the posts you are complaining about were from a poster on 2024-Apr-26 who found the contents of the thread helped solve their problem and another poster further commenting on changes they made for fix the same issue on 2024-May-09.
|
Tags |
https, kasmvnc, nginx, proxy, ubuntu 23.10 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre http to https nginx reverse proxy issue | vinuabe4 | Server | 2 | 01-20-2020 09:01 AM |
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 |