mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-07 16:06:14 +00:00
Configuration file for OpenIdConnect integration is now generated on … (#5)
* Configuration file for OpenIdConnect integration is now generated on container startup * Add a startup dependency to owncloud phoenix Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
parent
2564e34f3a
commit
753dc21eae
@ -6,4 +6,25 @@ set -x
|
||||
|
||||
occ app:enable openidconnect
|
||||
|
||||
TODAY=$(date)
|
||||
cat <<EOF >/mnt/data/config/konnectd.config.php
|
||||
// Generated on $TODAY
|
||||
<?php
|
||||
\$CONFIG = [
|
||||
'loglevel' => 0,
|
||||
'debug' => true,
|
||||
'openid-connect' => [
|
||||
'provider-url' => 'https://$OWNCLOUD_DOMAIN',
|
||||
'client-id' => 'ownCloud',
|
||||
'client-secret' => 'ownCloud',
|
||||
'loginButtonName' => 'kopano',
|
||||
'autoRedirectOnLoginPage' => false,
|
||||
'redirect-url' => 'https://$OWNCLOUD_DOMAIN/owncloud/index.php/apps/openidconnect/redirect',
|
||||
'mode' => 'email',
|
||||
'search-attribute' => 'email',
|
||||
'use-token-introspection-endpoint' => false
|
||||
],
|
||||
];
|
||||
EOF
|
||||
|
||||
true
|
||||
|
@ -1,16 +0,0 @@
|
||||
<?php
|
||||
$CONFIG = [
|
||||
'loglevel' => 0,
|
||||
'debug' => true,
|
||||
'openid-connect' => [
|
||||
'provider-url' => 'https://kopano.demo:2015',
|
||||
'client-id' => 'ownCloud',
|
||||
'client-secret' => 'ownCloud',
|
||||
'loginButtonName' => 'kopano',
|
||||
'autoRedirectOnLoginPage' => false,
|
||||
'redirect-url' => 'https://kopano.demo:2015/owncloud/index.php/apps/openidconnect/redirect',
|
||||
'mode' => 'email',
|
||||
'search-attribute' => 'email',
|
||||
'use-token-introspection-endpoint' => false
|
||||
],
|
||||
];
|
@ -4,10 +4,11 @@
|
||||
version: "3.5"
|
||||
services:
|
||||
owncloud:
|
||||
depends_on:
|
||||
- kopano_konnect
|
||||
volumes:
|
||||
- ./owncloud/99-oidc.sh:/etc/owncloud.d/99-oidc.sh
|
||||
- ./owncloud/openidconnect/:/mnt/data/apps/openidconnect/
|
||||
- ./owncloud/konnectd.config.php:/mnt/data/config/konnectd.config.php
|
||||
- ./owncloud/phoenix/:/mnt/data/apps/phoenix/
|
||||
- ./owncloud/config.json:/mnt/data/apps/phoenix/config.json
|
||||
web:
|
||||
|
Loading…
x
Reference in New Issue
Block a user