Made keycloak partially init from env variables
also fixed theme to russian
This commit is contained in:
35
config/00-realm-config.yaml
Normal file
35
config/00-realm-config.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
realm: $(REALM_NAME)
|
||||
enabled: true
|
||||
displayName: $(REALM_DISPLAY_NAME)
|
||||
loginTheme: Blue_stripes
|
||||
attributes:
|
||||
userProfileEnabled: true
|
||||
registrationAllowed: true
|
||||
registrationEmailAsUsername: false # Set to true if you want email as username
|
||||
editUsernameAllowed: false # Prevent username changes after registration
|
||||
|
||||
internationalizationEnabled: true
|
||||
defaultLocale: ru
|
||||
supportedLocales:
|
||||
- ru
|
||||
|
||||
userProfile:
|
||||
attributes:
|
||||
- name: "username"
|
||||
displayName: ${username}
|
||||
|
||||
permissions:
|
||||
view: ["admin", "user"]
|
||||
edit: ["admin", "user"]
|
||||
|
||||
- name: "email"
|
||||
displayName: ${email}
|
||||
required:
|
||||
roles: ["user"]
|
||||
permissions:
|
||||
view: ["admin", "user"]
|
||||
edit: ["admin", "user"]
|
||||
validations:
|
||||
email: {}
|
||||
|
||||
unmanagedAttributePolicy: "ADMIN_VIEW"
|
||||
Reference in New Issue
Block a user