mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-15 08:30:46 +02:00
Solved missing redirect bug
This commit is contained in:
parent
9f865dd215
commit
eedfe83ece
@ -42,7 +42,7 @@ for filename in os.listdir(config_path):
|
||||
# Prepare the URL and expected status codes
|
||||
url = f"{{ WEB_PROTOCOL }}://{domain}"
|
||||
|
||||
redirected_domains = [domain['source'] for domain in {{ current_play_domain_mappings_redirect}}]
|
||||
redirected_domains = [domain['source'] for domain in {{ redirect_domain_mappings }}]
|
||||
redirected_domains.append("{{domains | get_domain('web-app-mailu')}}")
|
||||
|
||||
expected_statuses = get_expected_statuses(domain, parts, redirected_domains)
|
||||
|
@ -1,5 +1,8 @@
|
||||
# General
|
||||
application_id: "web-app-friendica"
|
||||
database_type: "mariadb"
|
||||
|
||||
# Friendica Specific
|
||||
friendica_container: "friendica"
|
||||
friendica_no_validation: "{{ applications | get_app_conf(application_id, 'features.oidc', True) }}" # Email validation is not neccessary if OIDC is active
|
||||
friendica_application_base: "/var/www/html"
|
||||
|
@ -42,7 +42,6 @@
|
||||
canonical_domains_map(primary_domain) |
|
||||
combine(current_play_domains, recursive=True)
|
||||
}}
|
||||
|
||||
- name: Merge redirect_domain_mappings
|
||||
set_fact:
|
||||
# The following mapping is necessary to define the exceptions for domains which are created, but which aren't used
|
||||
@ -54,7 +53,7 @@
|
||||
|
||||
- name: Set current play redirect domain mappings
|
||||
set_fact:
|
||||
current_play_domain_mappings_redirect: >-
|
||||
redirect_domain_mappings: >-
|
||||
{{
|
||||
current_play_applications |
|
||||
domain_mappings(primary_domain) |
|
||||
@ -67,7 +66,7 @@
|
||||
{{
|
||||
(current_play_domains |
|
||||
combine(
|
||||
current_play_domain_mappings_redirect |
|
||||
redirect_domain_mappings | default([]) |
|
||||
items2dict(key_name='source', value_name='source'),
|
||||
recursive=True
|
||||
)) |
|
||||
|
Loading…
x
Reference in New Issue
Block a user