Mastodon: enable OIDC and disable elasticsearch (doesn't work for now)

This commit is contained in:
Marko Korhonen 2022-12-18 01:14:59 +02:00
parent 3d5d910520
commit 839c346777
No known key found for this signature in database
GPG Key ID: A7F78BCB859CD890

View File

@ -29,11 +29,22 @@ environment = [
"SMTP_PASSWORD",
"SMTP_FROM_ADDRESS=social@korhonen.cc",
"S3_ENABLED=false",
"ES_ENABLED=true",
"ES_ENABLED=false",
"ES_HOST=elasticsearch",
"ES_PORT=9200",
"ES_USER=elastic",
"ES_PASS=changeme",
"OIDC_ENABLED=true",
"OMNIAUTH_ONLY=true",
"OIDC_DISPLAY_NAME=Korhonen SSO",
"OIDC_DISCOVERY=true",
"OIDC_AUTH_ENDPOINT=https://sso.korhonen.cc/application/o/mastodon/.well-known/openid-configuration",
"OIDC_ISSUER=https://sso.korhonen.cc/application/o/mastodon/",
"OIDC_SCOPE=openid,profile,email",
"OIDC_UID_FIELD=preferred_username",
"OIDC_CLIENT_ID",
"OIDC_CLIENT_SECRET",
"OIDC_REDIRECT_URI=https://social.korhonen.cc/auth/auth/openid_connect/callback",
]
networks = ["mastodon", "proxy", "postgres"]
volumes = ["/docker/mastodon:/config"]