User:Simon/prototypes/calibre-web configuration: Difference between revisions

From XPUB & Lens-Based wiki
(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...")
 
No edit summary
 
Line 1: Line 1:
==calibre-web configuration==
This is the configuration for calibre-web to listen on localhost:
This is the configuration for calibre-web to listen on localhost:



Latest revision as of 21:53, 10 June 2020

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