Fixes for SSO on roundcube and gitea
This commit is contained in:
parent
f76d916672
commit
9e4ad43e55
@ -351,7 +351,7 @@ EOF
|
|||||||
|
|
||||||
GITEA_RETRY="0"
|
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
|
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.."
|
echo "Retrying.."
|
||||||
sleep 1
|
sleep 1
|
||||||
((GITEA_RETRY++))
|
((GITEA_RETRY++))
|
||||||
|
@ -205,7 +205,7 @@ smtpd_sasl_type = dovecot
|
|||||||
smtpd_tls_auth_only = yes
|
smtpd_tls_auth_only = yes
|
||||||
EOF
|
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'
|
cat > /federated/apps/mail/data/etc/dovecot/conf.d/95-roundcube.conf <<'EOF'
|
||||||
service auth {
|
service auth {
|
||||||
unix_listener /var/spool/postfix/private/auth {
|
unix_listener /var/spool/postfix/private/auth {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user