User:Simon/prototypes/calibre-web configuration

From XPUB & Lens-Based wiki
< User:Simon
Revision as of 15:21, 5 December 2019 by Simon (talk | contribs) (Created page with "This is the configuration for calibre-web to listen on localhost: <pre> --- a/cps/server.py +++ b/cps/server.py @@ -152,7 +152,7 @@ class WebServer(object): http_serv...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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