Optimized keycloak and administrator variables

This commit is contained in:
Kevin Veen-Birkenbach 2025-01-20 19:37:43 +01:00
parent 7b490c18d2
commit 0d77245b46
5 changed files with 28 additions and 25 deletions

View File

@ -228,6 +228,9 @@ gitlab_version: "latest"
#### Joomla
joomla_version: "latest"
#### Keycloak
keycloak_version: "latest"
#### Listmonk
listmonk_admin_username: "admin"
listmonk_public_api_activated: False # Security hole. Can be used for spaming
@ -258,8 +261,8 @@ mailu_subnet: "192.168.203.0/24"
#### Moodle
moodle_site_name: "Global Learning Academy on {{top_domain}}"
moodle_user_name: "{{administrator_username}}"
moodle_user_email: "{{administrator_email}}"
moodle_administrator_name: "{{administrator_username}}"
moodle_administrator_email: "{{administrator_email}}"
moodle_version: "latest"
#### MyBB
@ -283,5 +286,5 @@ postgres_database_version: "latest"
taiga_version: "latest"
#### YOURLS
yourls_user: "{{administrator_username}}"
yourls_administrator_name: "{{administrator_username}}"
yourls_version: "latest"

View File

@ -45,7 +45,7 @@ pixelfed_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD"
pixelfed_app_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD"
wordpress_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD"
yourls_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD"
yourls_user_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD"
yourls_administrator_name_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD"
path_mass_storage: "/mnt/hdd/"
path_rapid_storage: "/mnt/ssd/"

View File

@ -6,14 +6,14 @@ services:
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
keycloak:
image: quay.io/keycloak/keycloak:latest
image: quay.io/keycloak/keycloak:{{keycloak_version}}
command: start
environment:
KC_HOSTNAME: {{domain}}
KC_HOSTNAME_PORT: {{http_port}}
KC_HOSTNAME_STRICT_BACKCHANNEL: false
KC_HTTP_ENABLED: true
KC_HOSTNAME_STRICT_HTTPS: false
#KC_HOSTNAME_PORT: {{http_port}}
KC_HOSTNAME_STRICT_BACKCHANNEL: true
KC_HTTP_ENABLED: false
KC_HOSTNAME_STRICT_HTTPS: true
KC_HEALTH_ENABLED: true
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
@ -23,7 +23,7 @@ services:
KC_DB_PASSWORD: {{database_password}}
ports:
- "127.0.0.1:{{http_port}}:8080"
restart: always
restart: {{docker_restart_policy}}
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
{% include 'templates/docker/container/networks.yml.j2' %}

View File

@ -18,9 +18,9 @@ services:
- MOODLE_SITE_NAME="{{moodle_site_name}}"
- MOODLE_SSLPROXY=yes
- MOODLE_REVERSE_PROXY=yes
- MOODLE_USERNAME={{moodle_user_name}}
- MOODLE_USERNAME={{moodle_administrator_name}}
- MOODLE_PASSWORD={{moodle_user_password}}
- MOODLE_EMAIL={{moodle_user_email}}
- MOODLE_EMAIL={{moodle_administrator_email}}
- BITNAMI_DEBUG={% if mode_debug | bool %}true{% else %}false{% endif %}
volumes:
- 'moodle:/bitnami/moodle'

View File

@ -15,8 +15,8 @@ services:
YOURLS_DB_PASS: "{{database_password}}"
YOURLS_DB_NAME: "{{database_name}}"
YOURLS_SITE: "https://{{domain}}"
YOURLS_USER: "{{yourls_user}}"
YOURLS_PASS: "{{yourls_user_password}}"
yourls_administrator_name: "{{yourls_administrator_name}}"
YOURLS_PASS: "{{yourls_administrator_name_password}}"
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1/admin/"]
interval: 1m