Compare commits

..

1 Commits

Author SHA1 Message Date
ammaratef45 83be928052 [mass update] fix supporting multiple domains while enforcing ssl
continuous-integration/drone/pr Build is failing
2025-09-08 08:11:35 -07:00
5 changed files with 9 additions and 12 deletions
-1
View File
@@ -16,7 +16,6 @@ SECRET_SSO_CERT_VERSION=v1
# SSO_PROVIDER_URL=https://authentik.example.com/
# SSO_SAML_URL=https://authentik.example.com/application/saml/kimai/sso/binding/redirect/
# SSO_LOGOUT_URL=https://authentik.example.com/application/saml/kimai/slo/binding/redirect/
# SSO_ADMIN_GROUP_NAME=kimai_admin
# MAILER_URL="smtp://<from>:<password>%3F@<mailserver>:587"
# MAILER_FROM="Kimai Notifications noreply@example.com"
+1 -1
View File
@@ -1,5 +1,5 @@
export ENTRYPOINT_CONF_VERSION=v2
export LOCAL_CONF_VERSION=v4
export LOCAL_CONF_VERSION=v3
create_admin () {
export DATABASE_URL="$DATABASE_TYPE://$DATABASE_USER:$(cat /run/secrets/db_password)@$DATABASE_HOST/$DATABASE_NAME"
+7 -8
View File
@@ -1,10 +1,10 @@
version: '3.8'
services:
app:
image: kimai/kimai2:2.63.0
image: kimai/kimai2:apache-2.34.0
environment:
- APP_ENV=prod
- TRUSTED_HOSTS=localhost|traefik|${DOMAIN}|127.0.0.1
- TRUSTED_HOSTS=localhost,traefik,${DOMAIN},127.0.0.1
- TRUSTED_PROXIES=localhost,traefik,127.0.0.1
- ADMINMAIL=admin@kimai.local
- ADMINPASS_FILE=/run/secrets/admin_password
@@ -18,7 +18,6 @@ services:
- SSO_PROVIDER_URL
- SSO_SAML_URL
- SSO_LOGOUT_URL
- SSO_ADMIN_GROUP_NAME
- MAILER_URL
- MAILER_FROM
volumes:
@@ -51,16 +50,16 @@ services:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.swarm.network=proxy"
- "traefik.docker.network=proxy"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8001"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version=1.10.0+2.63.0"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT}"
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.permanent=true"
- "coop-cloud.${STACK_NAME}.version=1.4.0+apache-2.34.0"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
db:
image: mysql:5.7
environment:
+1 -1
View File
@@ -11,7 +11,7 @@ kimai:
attribute: http://schemas.xmlsoap.org/claims/Group
mapping:
# Insert your roles here (ROLE_USER is added automatically)
- { saml: {{ env "SSO_ADMIN_GROUP_NAME" }}, kimai: ROLE_SUPER_ADMIN }
- { saml: admin.group, kimai: ROLE_SUPER_ADMIN }
- { saml: "authentik Admins", kimai: ROLE_SUPER_ADMIN }
connection:
# You SAML provider
-1
View File
@@ -1 +0,0 @@
Adds kimai_group as admin group for SSO with authentik