diff --git a/roles/sys-hlth-webserver/templates/sys-hlth-webserver.py.j2 b/roles/sys-hlth-webserver/templates/sys-hlth-webserver.py.j2 index c7d16ffc..876f6574 100644 --- a/roles/sys-hlth-webserver/templates/sys-hlth-webserver.py.j2 +++ b/roles/sys-hlth-webserver/templates/sys-hlth-webserver.py.j2 @@ -20,7 +20,7 @@ def get_expected_statuses(domain: str, parts: list[str], redirected_domains: set if (parts and parts[0] == 'www') or (domain in redirected_domains): return [301] if domain == '{{domains | get_domain('web-app-yourls')}}': - return [{{ applications | get_app_conf(application_id, 'server.status_code.landingpage', True) }}] + return [{{ applications | get_app_conf('web-app-yourls', 'server.status_codes.landingpage', True) }}] return [200, 302, 301] # file in which fqdn server configs are deposit diff --git a/roles/web-app-yourls/config/main.yml b/roles/web-app-yourls/config/main.yml index d54406ab..ea01f321 100644 --- a/roles/web-app-yourls/config/main.yml +++ b/roles/web-app-yourls/config/main.yml @@ -29,7 +29,7 @@ server: unsafe-inline: true locations: admin: "/admin/" - status_code: + status_codes: landingpage: 301 docker: services: diff --git a/roles/web-app-yourls/vars/main.yml b/roles/web-app-yourls/vars/main.yml index ae1eea91..b28783d9 100644 --- a/roles/web-app-yourls/vars/main.yml +++ b/roles/web-app-yourls/vars/main.yml @@ -9,7 +9,7 @@ yourls_version: "{{ applications | get_app_conf(application_id, yourls_image: "{{ applications | get_app_conf(application_id, 'docker.services.yourls.image', True) }}" yourls_container: "{{ applications | get_app_conf(application_id, 'docker.services.yourls.name', True) }}" yourls_admin_location: "{{ applications | get_app_conf(application_id, 'server.locations.admin', True) }}" -yourls_landingpage_status_code: "{{ applications | get_app_conf(application_id, 'server.status_code.landingpage', True) }}" +yourls_landingpage_status_code: "{{ applications | get_app_conf(application_id, 'server.status_codes.landingpage', True) }}" # Nginx Specific proxy_extra_configuration: "{{ lookup('template', 'redirect.conf.j2') }}"