View Single Post
Old 07-10-2014, 04:22 PM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,453
Karma: 8012886
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]
chaley is offline   Reply With Quote