|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 263
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 02:23 PM. |
|
|
|
|
|
#2 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
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 | |
|
|
|
|
#3 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 263
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
|
|
|
|
|
|
#4 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
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
|
|
|
|
|
|
#5 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
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 | |
|
|
|
|
#6 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 263
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 10:05 AM |
| calibre-server OPDS catalog - manual move to web server | HaakonME | Related Tools | 5 | 09-21-2012 04:11 AM |
| Web interface of Calibre Server | nqk | Related Tools | 4 | 02-18-2012 04:04 AM |
| calibre detection on the web server | poldem | Recipes | 2 | 03-26-2011 06:51 PM |
| Calibre - web server problems | eclpmb | Calibre | 9 | 11-28-2008 03:04 PM |