Noms des sites configurables (poc_fqdn_suffix) : www-bwpoc.vlab.bzh, un seul niveau sous le wildcard Traefik

Tests : 26 OK, 0 KO.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
cedricandClaude Opus 5.5 committed 2026-10-27 15:59:35 +01:00
1 parent 04c8081215
commit e395fae4c6
8 files changed
+33 -27

No files matched your search

+3 -3
View File
@@ -40,7 +40,7 @@
ansible.builtin.uri:
url: "https://{{ ansible_host }}/get"
headers:
Host: "api.{{ poc_domain }}"
Host: "api{{ poc_fqdn_suffix }}"
validate_certs: false
status_code: 200
register: bw_probe
@@ -53,7 +53,7 @@
dest: "{{ playbook_dir }}/../credentials/ACCES.txt"
mode: "0600"
content: |
UI BunkerWeb : https://bwui.{{ poc_domain }}/ (WAF {{ ansible_host }})
UI BunkerWeb : https://bwui{{ poc_fqdn_suffix }}/ (WAF {{ ansible_host }})
Identifiant : {{ bw_ui_admin_user }}
Mot de passe : {{ bw_ui_admin_password }}
delegate_to: localhost
@@ -61,4 +61,4 @@
- name: Rappel des accès
ansible.builtin.debug:
msg: "UI BunkerWeb : https://bwui.{{ poc_domain }}/ , identifiants dans credentials/ACCES.txt"
msg: "UI BunkerWeb : https://bwui{{ poc_fqdn_suffix }}/ , identifiants dans credentials/ACCES.txt"
+2 -2
View File
@@ -48,13 +48,13 @@ services:
environment:
<<: [*db-env, *api-env]
BUNKERWEB_INSTANCES: "bunkerweb"
SERVER_NAME: {{ val(bw_sites.keys() | map('regex_replace', '$', '.' ~ poc_domain) | join(' ')) }}
SERVER_NAME: {{ val(bw_sites.keys() | map('regex_replace', '$', poc_fqdn_suffix) | join(' ')) }}
# --- Réglages globaux ---
{% for k, v in bw_global_settings.items() %}
{{ k }}: {{ val(v) }}
{% endfor %}
{% for name, site in bw_sites.items() %}
{% set fqdn = name ~ '.' ~ poc_domain %}
{% set fqdn = name ~ poc_fqdn_suffix %}
# --- {{ fqdn }} ---
{{ fqdn }}_USE_REVERSE_PROXY: "yes"
{{ fqdn }}_REVERSE_PROXY_URL: "/"