Fixes for SSO on roundcube and gitea

This commit is contained in:
root 2024-11-18 19:44:43 +00:00
parent f76d916672
commit 9e4ad43e55
2 changed files with 2 additions and 2 deletions

View File

@ -351,7 +351,7 @@ EOF
GITEA_RETRY="0"
until docker exec --user 1000 gitea gitea admin auth add-oauth --name "Authelia" --provider "openidConnect" --key "gitea" --secret "$GITEA_CLIENT_SECRET" --auto-discover-url "https://authelia.$DOMAIN/.well-known/openid-configuration" --skip-local-2fa "true" --scopes "openid email profile" --group-claim-name "groups" --admin-group "admin" --restricted-group "guest"; do
[[ "$GITEA_RETRY" -eq 30 ]] && echo "ERROR - Can't connect gitea add-oauth to authelia" && break
[[ "$GITEA_RETRY" -eq 60 ]] && echo "ERROR - Can't connect gitea add-oauth to authelia" && break
echo "Retrying.."
sleep 1
((GITEA_RETRY++))

View File

@ -205,7 +205,7 @@ smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
EOF
[[ ! -d "/federated/apps/mail/data/etc/dovecot/conf.d" ]] && mkdir /federated/apps/mail/data/etc/dovecot/conf.d
[[ ! -d "/federated/apps/mail/data/etc/dovecot/conf.d" ]] && mkdir -p /federated/apps/mail/data/etc/dovecot/conf.d
cat > /federated/apps/mail/data/etc/dovecot/conf.d/95-roundcube.conf <<'EOF'
service auth {
unix_listener /var/spool/postfix/private/auth {