Files
keycloak/config/00-realm-config.yaml

37 lines
991 B
YAML

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: true # Prevent username changes after registration
internationalizationEnabled: true
defaultLocale: ru
supportedLocales:
- ru
ssoSessionIdleTimeout: 1800 # 30 minutes
ssoSessionMaxLifespan: 28800 # 8 hours
ssoSessionIdleTimeoutRememberMe: 604800 # 7 days
ssoSessionMaxLifespanRememberMe: 31536000 # 1 year
smtpServer:
# Sender Details
from: $(EMAIL_ADRESS)
fromDisplayName: $(REALM_DISPLAY_NAME)
# Connection Settings
host: $(SMTP_HOST)
port: $(SMTP_PORT) # Common ports: 25, 465 (SSL), 587 (TLS)
auth: true
ssl: $(SMTP_SSL) # Enable for port 465
starttls: $(SMTP_STARTLS) # Enable for port 587
# Authentication Credentials (use string values directly)
user: $(SMTP_USER)
password: $(SMTP_PASSWORD)