Skip to content

Commit a024c99

Browse files
authored
chore: add optional SSO envs
1 parent 96a45e5 commit a024c99

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/hedgedoc/docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ services:
2626
- CMD_SESSION_SECRET="discolor-subtitle-seducing-result-ceramics" # define secret
2727
- CMD_ALLOW_EMAIL_REGISTER="false" # disallow registration
2828
- CMD_EMAIL="false" # disallow login; only guest notes
29+
# ------- OAUTH SSO -------
30+
# see https://docs.goauthentik.io/integrations/services/hedgedoc/
31+
#- CMD_ALLOW_ANONYMOUS_EDITS=False
32+
#- CMD_OAUTH2_USER_PROFILE_URL=https://authentik.example.com/application/o/userinfo/
33+
#- CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR=preferred_username
34+
#- CMD_OAUTH2_USER_PROFILE_DISPLAY_NAME_ATTR=name
35+
#- CMD_OAUTH2_USER_PROFILE_EMAIL_ATTR=email
36+
#- CMD_OAUTH2_TOKEN_URL=https://authentik.example.com/application/o/token/
37+
#- CMD_OAUTH2_AUTHORIZATION_URL=https://authentik.example.com/application/o/authorize/
38+
#- CMD_OAUTH2_CLIENT_ID=<ID>
39+
#- CMD_OAUTH2_CLIENT_SECRET=<SECRET>
40+
#- CMD_OAUTH2_PROVIDERNAME=Authentik
41+
#- CMD_OAUTH2_SCOPE=openid email profile
2942
volumes:
3043
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/hedgedoc/uploads:/hedgedoc/public/uploads
3144
ports:

0 commit comments

Comments
 (0)