Skip to content

Commit

Permalink
Merge pull request #161 from plone/fix-windows-cluster
Browse files Browse the repository at this point in the history
fix windows cluster f.. config
  • Loading branch information
mauritsvanrees authored Feb 17, 2021
2 parents ea66b42 + 273a1fb commit eb89fd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions news/161.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fix windows `wsgi.ini` to have a configurable listen address.
Added missing WSGI config options for windows.
[jensens]
9 changes: 3 additions & 6 deletions src/plone/recipe/zope2instance/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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 = """\
Expand Down

0 comments on commit eb89fd8

Please sign in to comment.