From 80c7df2e0a25f549f5044016691ae391074e2c59 Mon Sep 17 00:00:00 2001 From: selten Date: Fri, 9 Feb 2024 14:32:18 +0100 Subject: [PATCH 1/2] #1429 Allow --host parameter Don't set a static host when it is able to be provided by planemo, use the provided value if available --- planemo/galaxy/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planemo/galaxy/config.py b/planemo/galaxy/config.py index 570f077eb..3f97e1de9 100644 --- a/planemo/galaxy/config.py +++ b/planemo/galaxy/config.py @@ -523,7 +523,7 @@ def write_galaxy_config(galaxy_root, properties, env, kwds, template_args, confi "galaxy": properties, "gravity": { "galaxy_root": galaxy_root, - "gunicorn": {"bind": f"localhost:{template_args['port']}"}, + "gunicorn": {"bind": f"{kwds.get('host', 'localhost'}:{template_args['port']}"}, "gx-it-proxy": { "enable": False, }, From 6142e83d7d4e923cf585b900b7cdc3d8737b0345 Mon Sep 17 00:00:00 2001 From: selten Date: Fri, 9 Feb 2024 14:42:34 +0100 Subject: [PATCH 2/2] #1429 Fix syntax error --- planemo/galaxy/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planemo/galaxy/config.py b/planemo/galaxy/config.py index 3f97e1de9..caf0c768c 100644 --- a/planemo/galaxy/config.py +++ b/planemo/galaxy/config.py @@ -523,7 +523,7 @@ def write_galaxy_config(galaxy_root, properties, env, kwds, template_args, confi "galaxy": properties, "gravity": { "galaxy_root": galaxy_root, - "gunicorn": {"bind": f"{kwds.get('host', 'localhost'}:{template_args['port']}"}, + "gunicorn": {"bind": f"{kwds.get('host', 'localhost')}:{template_args['port']}"}, "gx-it-proxy": { "enable": False, },