[Suggestion] FEATURE (env) Allow setting users settings via ENV #161

Closed
opened 2026-04-05 16:15:52 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @artemkalugin01 on 2/4/2026

Suggestion to add ENV-based initialization for UserSettings

Adds support for configuring UserSettings defaults via environment
variables at deployment time. ENV values are applied only on initial
creation; existing settings are preserved.

New variables:

  • USERS_SETTINGS_IS_ALLOW_REGISTRATIONS (boolean: default true)
  • USERS_SETTINGS_IS_ALLOW_INVITATIONS (boolean: default true)
  • USERS_SETTINGS_IS_ALLOW_MEMBER_CREATE_WORKSPACES (boolean: default true)

Manual tests:
• Fresh deploy with new ENV values - settings applied
• Fresh deploy without ENV values - defaults used (all true similar to current main logic)
• Redeploy with changed ENV - existing settings unchanged

*Originally created by @artemkalugin01 on 2/4/2026* Suggestion to add ENV-based initialization for UserSettings Adds support for configuring UserSettings defaults via environment variables at deployment time. ENV values are applied only on initial creation; existing settings are preserved. New variables: - USERS_SETTINGS_IS_ALLOW_REGISTRATIONS (boolean: default true) - USERS_SETTINGS_IS_ALLOW_INVITATIONS (boolean: default true) - USERS_SETTINGS_IS_ALLOW_MEMBER_CREATE_WORKSPACES (boolean: default true) Manual tests: • Fresh deploy with new ENV values - settings applied • Fresh deploy without ENV values - defaults used (all true similar to current main logic) • Redeploy with changed ENV - existing settings unchanged
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/databasus#161