From 717926a2166c691946e53448f42e3cded79620b3 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Sat, 26 Nov 2022 21:58:16 +0100 Subject: [PATCH] boost-proxy: fix missing http error pages --- boost-proxy/tasks/sites.yml | 40 ++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/boost-proxy/tasks/sites.yml b/boost-proxy/tasks/sites.yml index d0702cf0..4968fa76 100644 --- a/boost-proxy/tasks/sites.yml +++ b/boost-proxy/tasks/sites.yml @@ -46,6 +46,25 @@ - config - update-config +- name: Copy 504 page + template: + src: "{{ lookup('first_found', file, errors='ignore') }}" + dest: "/etc/haproxy/sites/{{ site }}/504.http" + owner: root + group: root + mode: "0644" + vars: + file: + - "templates/boost-sites/{{ site }}/haproxy/504.http" + - "templates/haproxy/504.http" + loop: "{{ boost_sites_enabled }}" + loop_control: + loop_var: site + tags: + - haproxy + - config + - update-config + - name: Copy 503 page template: src: "{{ lookup('first_found', file, errors='ignore') }}" @@ -75,7 +94,7 @@ vars: file: - "templates/boost-sites/{{ site }}/haproxy/502.http" - - "templates/haproxy/503.http" + - "templates/haproxy/502.http" loop: "{{ boost_sites_enabled }}" loop_control: loop_var: site @@ -103,6 +122,25 @@ - config - update-config +- name: Copy 400 page + template: + src: "{{ lookup('first_found', file) }}" + dest: "/etc/haproxy/sites/{{ site }}/400.http" + owner: root + group: root + mode: "0644" + vars: + file: + - "templates/boost-sites/{{ site }}/haproxy/400.http" + - "templates/haproxy/400.http" + loop: "{{ boost_sites_enabled }}" + loop_control: + loop_var: site + tags: + - haproxy + - config + - update-config + - name: Copy 403 page template: src: "{{ lookup('first_found', file) }}"