User:Simon/prototypes/calibre-web configuration

From XPUB & Lens-Based wiki
< User:Simon
Revision as of 20:53, 10 June 2020 by Simon (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

calibre-web configuration

This is the configuration for calibre-web to listen on localhost:

--- a/cps/server.py
+++ b/cps/server.py
@@ -152,7 +152,7 @@ class WebServer(object):
        http_server = HTTPServer(WSGIContainer(self.app),
                                 max_buffer_size=209700000,
                                 ssl_options=self.ssl_args)
-        http_server.listen(self.listen_port, self.listen_address)
+        http_server.listen(self.listen_port, address="127.0.0.1")
        self.wsgiserver = IOLoop.instance()
        self.wsgiserver.start()
        # wait for stop signal