run read only backend if enableReadOnlyService is set

This commit is contained in:
j 2024-06-08 12:47:52 +01:00
parent 60e17ab076
commit d8cd9ecd4f

View file

@ -146,13 +146,12 @@ def run():
http_server.listen(settings.server['port'], settings.server['address'], max_buffer_size=max_buffer_size) http_server.listen(settings.server['port'], settings.server['address'], max_buffer_size=max_buffer_size)
# public server # public server
''' if settings.preferences.get('enableReadOnlyService'):
public_port = settings.server.get('public_port') public_port = settings.server.get('public_port')
public_address = settings.server['public_address'] public_address = settings.server['public_address']
if public_port: if public_port:
public_server = Application(public_handlers, **options) public_server = Application(public_handlers, **options)
public_server.listen(public_port, public_address) public_server.listen(public_port, public_address)
'''
if PID: if PID:
with open(PID, 'w') as pid: with open(PID, 'w') as pid: