07-10-2014, 01:20 PM | #1 |
Addict
Posts: 235
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
Tweaking the Calibre Web Server
Is there a way to tweak the cherrypy Calibre Library webserver? I see stuff in: calibre/lib/python2.7/site-packages/cherrypy
I want to set a robots.txt and use SSL (HTTPS). Is there a *.conf file I can edit somewhere? thanks Last edited by Geremia; 07-10-2014 at 01:23 PM. |
07-10-2014, 02:14 PM | #2 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Why not just reverse proxy it through apache?
|
Advert | |
|
07-10-2014, 03:36 PM | #3 |
Addict
Posts: 235
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
|
07-10-2014, 04:20 PM | #4 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Especially because it is the official calibre recommendation, too: http://manual.calibre-ebook.com/server.html
|
07-10-2014, 04:22 PM | #5 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I use an apache reverse proxy to do exactly what you want, SSL and auth. I use digest auth. My library is at "https://my-site/library", so I have calibre set up with a prefix. I use port 9192 internally between calibre and apache. That port is not permitted through the firewall.
The section in the ssl-sites config file looks like: Code:
<Location "/library"> AuthType Digest AuthName "Whatever you want" AuthDigestDomain / AuthDigestProvider file AuthUserFile path-to-file-for-digest-passwords Require valid-user </Location> RewriteEngine on RewriteRule ^/library/(.*) http://127.0.0.1:9192/library/$1 [proxy] RewriteRule ^/library http://127.0.0.1:9192 [proxy] |
Advert | |
|
07-11-2014, 10:50 PM | #6 | |
Addict
Posts: 235
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
Quote:
I didn't know about calibre-server's "--url-prefix"; that's useful. |
|
Tags |
calibre, webserver |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Porting Calibre's built-in web server to a remote server? | perryja | Related Tools | 6 | 05-02-2013 09:05 AM |
calibre-server OPDS catalog - manual move to web server | HaakonME | Related Tools | 5 | 09-21-2012 03:11 AM |
Web interface of Calibre Server | nqk | Related Tools | 4 | 02-18-2012 03:04 AM |
calibre detection on the web server | poldem | Recipes | 2 | 03-26-2011 05:51 PM |
Calibre - web server problems | eclpmb | Calibre | 9 | 11-28-2008 02:04 PM |