Update keycloak

This commit is contained in:
Kevin Veen-Birkenbach 2025-01-20 20:32:27 +01:00
parent c5d4956635
commit c5a7c76800
5 changed files with 25 additions and 15 deletions

View File

@ -5,8 +5,8 @@ ip4_address: "127.0.0.1" # Change thie in inventory to the ip address
backups_folder_path: "/Backups/" # Path to the backups folder
# Administrator
administrator_username: "administrator" # Username of the administrator
administrator_email: "{{administrator_username}}@{{top_domain}}" # Email of the administrator
administrator_username: "administrator" # Username of the administrator
administrator_email: "{{administrator_username}}@{{top_domain}}" # Email of the administrator
# Email Configuration
system_email_local: no-reply
@ -148,6 +148,7 @@ domain_funkwhale: "music.{{top_domain}}"
domain_gitea: "git.{{top_domain}}"
domain_gitlab: "gitlab.{{top_domain}}"
domain_portfolio: "{{top_domain}}"
domain_keycloak: "auth.{{top_domain}}"
domain_listmonk: "newsletter.{{top_domain}}"
domain_mailu: "{{system_email_host}}"
domain_mastodon: "microblog.{{top_domain}}"
@ -174,6 +175,7 @@ redirect_domain_mappings:
- { source: "discourse.{{top_domain}}", target: "{{domain_discourse}}" }
- { source: "funkwhale.{{top_domain}}", target: "{{domain_funkwhale}}" }
- { source: "gitea.{{top_domain}}", target: "{{domain_gitea}}" }
- { source: "keycloak.{{top_domain}}", target: "{{domain_keycloak}}" }
- { source: "listmonk.{{top_domain}}", target: "{{domain_listmonk}}" }
- { source: "moodle.{{top_domain}}", target: "{{domain_moodle}}" }
- { source: "nextcloud.{{top_domain}}", target: "{{domain_nextcloud}}" }
@ -185,6 +187,7 @@ redirect_domain_mappings:
- { source: "taiga.{{top_domain}}", target: "{{domain_taiga}}" }
- { source: "videos.{{top_domain}}", target: "{{domain_peertube}}" }
## Docker Applications
### Enable Central MariaDB

View File

@ -297,6 +297,15 @@
http_port_api: 8030
http_port_web: 8031
- name: setup keycloak
hosts: keycloak
become: true
roles:
- role: docker-keycloak
vars:
domain: "{{domain_keycloack}}"
http_port: 8032
# Native Webserver Roles
- name: setup nginx-static-repositorys
hosts: nginx-static-repositorys

View File

@ -4,4 +4,5 @@
- https://www.keycloak.org/
- https://github.com/keycloak/keycloak
- https://en.wikipedia.org/wiki/Keycloak
- https://www.keycloak.org/server/containers
- https://www.keycloak.org/server/containers
- https://www.youtube.com/watch?v=fvxQ8bW0vO8

View File

@ -1,8 +1,5 @@
version: '3.7'
services:
# include database container
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
keycloak:
@ -15,8 +12,8 @@ services:
KC_HTTP_ENABLED: false
KC_HOSTNAME_STRICT_HTTPS: true
KC_HEALTH_ENABLED: true
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
KEYCLOAK_ADMIN: "{{keycloak_administrator_username}}"
KEYCLOAK_ADMIN_PASSWORD: "{{keycloak_administrator_password}}"
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://{{database_host}}/{{database_name}}
KC_DB_USERNAME: {{database_username}}

View File

@ -10,13 +10,13 @@ services:
ports:
- "127.0.0.1:{{http_port}}:80"
environment:
YOURLS_DB_HOST: "{{database_host}}"
YOURLS_DB_USER: "{{database_username}}"
YOURLS_DB_PASS: "{{database_password}}"
YOURLS_DB_NAME: "{{database_name}}"
YOURLS_SITE: "https://{{domain}}"
yourls_administrator_username: "{{yourls_administrator_username}}"
YOURLS_PASS: "{{yourls_administrator_username_password}}"
YOURLS_DB_HOST: "{{database_host}}"
YOURLS_DB_USER: "{{database_username}}"
YOURLS_DB_PASS: "{{database_password}}"
YOURLS_DB_NAME: "{{database_name}}"
YOURLS_SITE: "https://{{domain}}"
yourls_administrator_username: "{{yourls_administrator_username}}"
YOURLS_PASS: "{{yourls_administrator_username_password}}"
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1/admin/"]
interval: 1m