From 273a1fb2effc5112b6d44c10b4dc706ae2368e99 Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Tue, 16 Feb 2021 22:53:57 +0100 Subject: [PATCH] fix windows cluster f.. config --- news/161.bugfix | 3 +++ src/plone/recipe/zope2instance/recipe.py | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 news/161.bugfix diff --git a/news/161.bugfix b/news/161.bugfix new file mode 100644 index 00000000..9b48e474 --- /dev/null +++ b/news/161.bugfix @@ -0,0 +1,3 @@ +Fix windows `wsgi.ini` to have a configurable listen address. +Added missing WSGI config options for windows. +[jensens] \ No newline at end of file diff --git a/src/plone/recipe/zope2instance/recipe.py b/src/plone/recipe/zope2instance/recipe.py index 2cda67c1..bf5802e3 100644 --- a/src/plone/recipe/zope2instance/recipe.py +++ b/src/plone/recipe/zope2instance/recipe.py @@ -814,10 +814,6 @@ def build_wsgi_ini(self): 'eventlog_name': eventlog_name, 'fast-listen': fast, 'http_address': listen, - # todo: make this configurable - 'listen_ip': '127.0.0.1', - 'listen_port': '8080', - # /todo 'location': options['location'], 'max_request_body_size': options.get( 'max-request-body-size', 1073741824), @@ -1385,9 +1381,10 @@ def render_file_storage(self, file_storage, blob_storage, wsgi_server_main_templates['win32'] = """\ use = egg:waitress#main -host = %(listen_ip)s -port = %(listen_port)s +listen = %(http_address)s +threads = %(threads)s clear_untrusted_proxy_headers = %(clear_untrusted_proxy_headers)s +max_request_body_size = %(max_request_body_size)s """ wsgi_ini_template = """\