Bluesky: add redirects for deactivated web/view domains to BLUESKY_API_DOMAIN via web-opt-rdr-domains

Ref: https://chatgpt.com/share/68d2cf5f-4a88-800f-a739-485580d84566
This commit is contained in:
2025-09-23 18:48:47 +02:00
parent 3cbf37d774
commit 12d05ef013

View File

@@ -37,4 +37,14 @@
- name: "DNS for Bluesky"
include_tasks: "03_dns.yml"
when: DNS_PROVIDER | lower == 'cloudflare'
when: DNS_PROVIDER | lower == 'cloudflare'
- name: "Redirect deactivated BlueSky Services to {{ BLUESKY_API_DOMAIN }}"
include_role:
name: web-opt-rdr-domains
vars:
redirect_domain_mappings: >-
{{
( (BLUESKY_WEB_ENABLED | bool) | ternary([], [ {'source': BLUESKY_WEB_DOMAIN, 'target': BLUESKY_API_DOMAIN } ]) )
+ ( (BLUESKY_VIEW_ENABLED | bool) | ternary([], [ {'source': BLUESKY_VIEW_DOMAIN, 'target': BLUESKY_API_DOMAIN } ]) )
}}