From 7323cbdd72e4008da3173ad5a7f51027f600c8c3 Mon Sep 17 00:00:00 2001 From: SebClem Date: Fri, 13 Sep 2024 18:53:23 +0200 Subject: [PATCH] Fix hostname --- plugins/action/load_caddy_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/action/load_caddy_config.py b/plugins/action/load_caddy_config.py index 6946f9c..e3d25f8 100644 --- a/plugins/action/load_caddy_config.py +++ b/plugins/action/load_caddy_config.py @@ -215,7 +215,7 @@ class ActionModule(ActionBase): if state == "present": results['proxy_config'].append({ - "site": main_hostname, + "site": '{0}.{1}'.format(main_hostname, domain), "upstream": upstream, "upstream_config": upstream_config, "protected": protected, @@ -228,7 +228,7 @@ class ActionModule(ActionBase): results['dns_hostnames'].update({ dns_provider: []}) results['dns_hostnames'][dns_provider].append({ - "hostname": '{0}.{1}'.format(main_hostname, domain), + "hostname": main_hostname, "domain": domain, "target": dns_target, "state": state,