Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 12-28-2023, 03:39 PM   #1
HuckinFappy
Junior Member
HuckinFappy began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2023
Device: Kindle Paperwhite
Question 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.
HuckinFappy is offline   Reply With Quote
Old 12-28-2023, 10:13 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,866
Karma: 22666666
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.
kovidgoyal is online now   Reply With Quote
Old 01-01-2024, 02:25 AM   #3
HuckinFappy
Junior Member
HuckinFappy began at the beginning.
 
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;
HuckinFappy is offline   Reply With Quote
Old 04-26-2024, 09:24 PM   #4
GinoGinelli
Junior Member
GinoGinelli began at the beginning.
 
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
GinoGinelli is offline   Reply With Quote
Reply

Tags
https, kasmvnc, nginx, proxy, ubuntu 23.10


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre http to https nginx reverse proxy issue vinuabe4 Server 2 01-20-2020 08:01 AM
Need help: Using NGINX as reverse-proxy for Calibre haertig Related Tools 5 11-18-2017 08:54 PM
Calibre-server reverse proxy issues dom134 Related Tools 12 05-30-2016 04:39 PM
Nginx Calibre Proxy Ackis Calibre 2 04-19-2016 01:48 PM
Aldiko + Calibre-Server + Reverse Proxy dummkauf Related Tools 4 02-02-2016 02:55 PM


All times are GMT -4. The time now is 11:06 AM.


MobileRead.com is a privately owned, operated and funded community.