feat(web-opt-rdr-www): split flavors into edge (Cloudflare redirect rule) and origin (Nginx redirect) with dynamic selection via prefered_flavor

This commit is contained in:
2025-08-17 01:29:37 +02:00
parent bd2dde3af6
commit 2a1a956739
7 changed files with 172 additions and 54 deletions

View File

@@ -1,2 +1,6 @@
# General
application_id: "web-opt-rdr-www"
REDIRECT_WWW_FLAVOR: "edge"
# Redirect WWW
REDIRECT_WWW_FLAVOR: "{{ applications | get_app_conf(application_id, 'prefered_flavor') if DNS_PROVIDER == 'cloudflare' else 'origin' }}"
REDIRECT_WWW_DOMAINS: "{{ current_play_domains_all | select('match', '^www\\.') | list }}"