From 96e2a0033fcfcf80b5f9a69ce731198ae12348a9 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 29 May 2025 13:39:36 +0200 Subject: [PATCH] Optimized healh checks --- roles/health-nginx/templates/health-nginx.py.j2 | 3 +-- roles/nginx-serve-html/vars/configuration.yml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/health-nginx/templates/health-nginx.py.j2 b/roles/health-nginx/templates/health-nginx.py.j2 index f39f8837..5572060f 100644 --- a/roles/health-nginx/templates/health-nginx.py.j2 +++ b/roles/health-nginx/templates/health-nginx.py.j2 @@ -21,8 +21,7 @@ def get_expected_statuses(domain: str, parts: list[str], redirected_domains: set return [301] if domain == '{{domains | get_domain('yourls')}}': return [403] - # Default: Expect status code 200 or 302 for a domain - return [200,302] + return [200, 302, 301] # file in which fqdn server configs are deposit config_path = '{{nginx.directories.http.servers}}' diff --git a/roles/nginx-serve-html/vars/configuration.yml b/roles/nginx-serve-html/vars/configuration.yml index 36ee1f3c..8e80d2cf 100644 --- a/roles/nginx-serve-html/vars/configuration.yml +++ b/roles/nginx-serve-html/vars/configuration.yml @@ -1,7 +1,7 @@ features: matomo: true css: true - portfolio_iframe: false + portfolio_iframe: true domains: canonical: - "html.{{ primary_domain }}"