Added get_domain function

This commit is contained in:
2025-05-17 14:53:55 +02:00
parent ad51597e2e
commit 3388d3c592
94 changed files with 288 additions and 141 deletions

View File

@@ -13,7 +13,7 @@ services:
environment:
SPRING_PROFILES_ACTIVE: docker,postgresql,saml2
OPENJPA_REMOTE_COMMIT: sjvm
SERVICE_DISCOVERY_ADDRESS: {{ web_protocol }}://{{ domains[application_id] }}/{{syncope_paths[rest]}}/
SERVICE_DISCOVERY_ADDRESS: {{ web_protocol }}://{{ domains | get_domain(application_id) }}/{{syncope_paths[rest]}}/
# database variablen auslesen
console:
@@ -25,7 +25,7 @@ services:
restart: always
environment:
SPRING_PROFILES_ACTIVE: docker,saml2
SERVICE_DISCOVERY_ADDRESS: {{ web_protocol }}://{{ domains[application_id] }}/{{syncope_paths[console]}}/
SERVICE_DISCOVERY_ADDRESS: {{ web_protocol }}://{{ domains | get_domain(application_id) }}/{{syncope_paths[console]}}/
enduser:
depends_on:
@@ -36,5 +36,5 @@ services:
restart: always
environment:
SPRING_PROFILES_ACTIVE: docker,saml2
SERVICE_DISCOVERY_ADDRESS: {{ web_protocol }}://{{ domains[application_id] }}/{{syncope_paths[enduser]}}/
SERVICE_DISCOVERY_ADDRESS: {{ web_protocol }}://{{ domains | get_domain(application_id) }}/{{syncope_paths[enduser]}}/

View File

@@ -16,7 +16,7 @@ server
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
{% for path in syncope_paths.values() %}
{% set location = web_protocol ~ '://' ~ domains[application_id] ~ '/' ~ path ~ '/' %}
{% set location = web_protocol ~ '://' ~ domains | get_domain(application_id) ~ '/' ~ path ~ '/' %}
{% include 'roles/nginx-docker-reverse-proxy/templates/location/proxy_basic.conf.j2'%}
{% endfor %}
}

View File

@@ -1,7 +1,7 @@
# General Configuration
application_id: syncope
database_type: "postgres"
database_password: "{{ domains[application_id].credentials.database_password }}"
database_password: "{{ domains | get_domain(application_id).credentials.database_password }}"
# Application Specific
syncope_keymaster_address: http://localhost:8080/syncope/rest/keymaster
@@ -10,8 +10,8 @@ syncope_paths:
console: console
enduser: enduser
syncope_anonymous_user: "{{ domains[application_id].users.anonymous.username }}"
syncope_anonymous_password: "{{ domains[application_id].credentials.anonymous.password }}"
syncope_anonymous_user: "{{ domains | get_domain(application_id).users.anonymous.username }}"
syncope_anonymous_password: "{{ domains | get_domain(application_id).credentials.anonymous.password }}"
syncope_administrator_user: "{{ domains[application_id].users.administrator.username }}"
syncope_administrator_password: "{{ domains[application_id].credentials.administrator_password }}"
syncope_administrator_user: "{{ domains | get_domain(application_id).users.administrator.username }}"
syncope_administrator_password: "{{ domains | get_domain(application_id).credentials.administrator_password }}"