Make env vars more manageable for end-user

This commit is contained in:
Luke Murphy 2021-02-15 00:24:07 +01:00
parent 8cb7bed81e
commit e9c3c3e88e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 8 additions and 10 deletions

View File

@ -11,11 +11,9 @@ ADMIN_EMAIL=rocketchat@example.com
# OAuth with Keycloak
#COMPOSE_FILE="compose.yml:compose.oauth.yml"
#Accounts_OAuth_Custom-Keycloak-url="https://id.example.com/auth"
#Accounts_OAuth_Custom-Keycloak-token_path="/realms/realmname/protocol/openid-connect/token"
#Accounts_OAuth_Custom-Keycloak-identity_path="/realms/realmname/protocol/openid-connect/userinfo"
#Accounts_OAuth_Custom-Keycloak-authorize_path="/realms/realmname/protocol/openid-connect/auth"
#Accounts_OAuth_Custom-Keycloak-id="rocketchat"
#KEYCLOAK_DOMAIN=id.example.com
#KEYCLOAK_REALM=myrealm
#KEYCLOAK_CLIENT=foobar
#SECRET_OAUTH_KEY_VERSION=v1

View File

@ -7,14 +7,14 @@ services:
- oauth_key
environment:
- Accounts_OAuth_Custom-Keycloak=true
- Accounts_OAuth_Custom-Keycloak-url=${Accounts_OAuth_Custom_Keycloak_url}
- Accounts_OAuth_Custom-Keycloak-token_path=${Accounts_OAuth_Custom_Keycloak_token_path}
- Accounts_OAuth_Custom-Keycloak-url=https://${KEYCLOAK_DOMAIN}/auth
- Accounts_OAuth_Custom-Keycloak-token_path=/realms/${KEYCLOAK_REALM}/protocol/openid-connect/token
- Accounts_OAuth_Custom-Keycloak-token_sent_via=Header
- Accounts_OAuth_Custom-Keycloak-identity_token_sent_via=header
- Accounts_OAuth_Custom-Keycloak-identity_path=${Accounts_OAuth_Custom_Keycloak_identity_path}
- Accounts_OAuth_Custom-Keycloak-authorize_path=${Accounts_OAuth_Custom_Keycloak_authorize_path}
- Accounts_OAuth_Custom-Keycloak-identity_path=/realms/${KEYCLOAK_REALM}/protocol/openid-connect/userinfo
- Accounts_OAuth_Custom-Keycloak-authorize_path=/realms/${KEYCLOAK_REALM}/protocol/openid-connect/auth
- Accounts_OAuth_Custom-Keycloak-scope=openid
- Accounts_OAuth_Custom-Keycloak-id=${Accounts_OAuth_Custom_Keycloak_id}
- Accounts_OAuth_Custom-Keycloak-id=${KEYCLOAK_CLIENT}
- Accounts_OAuth_Custom-Keycloak-login_style=redirect
- Accounts_OAuth_Custom-Keycloak-button_label_text=Login via Keycloak
- Accounts_OAuth_Custom-Keycloak-button_label_color=#FFFFFF