Create the first superadmin from DOCWELL_ADMIN_EMAIL on start
When DOCWELL_ADMIN_EMAIL and DOCWELL_ADMIN_PASSWORD are set (and optionally DOCWELL_ADMIN_NAME), docwell-server creates that account as superadmin on start while the instance has no accounts. Once any account exists it changes nothing, so restarts never reset the password or a role changed in the admin panel. Without them, the first sign-up still wins. Pass the variables through every compose file, document them in the .env examples and the configuration, access and quick-start guides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b9be8be156
commit
3c7403ddf9
27 files changed
+239
-3
No files matched your search
@@ -26,6 +26,13 @@ DOCWELL_SIGNUP_ENABLED=true
|
||||
# Comma-separated email domains allowed to sign up (empty = any).
|
||||
DOCWELL_SIGNUP_DOMAINS=
|
||||
|
||||
# Optional: the first account, created as superadmin on start while the
|
||||
# instance has no accounts. Later starts leave it alone (change it in the
|
||||
# admin panel). Password: 8 characters or more. Blank = first sign-up wins.
|
||||
DOCWELL_ADMIN_EMAIL=
|
||||
DOCWELL_ADMIN_PASSWORD=
|
||||
DOCWELL_ADMIN_NAME=
|
||||
|
||||
# Email (verification, password reset, sign-in codes), sent by PocketBase.
|
||||
# Empty host = email off. For local testing run `docker compose --profile dev up`
|
||||
# with DOCWELL_SMTP_HOST=mailpit and DOCWELL_SMTP_PORT=1025, then open
|
||||
|
||||
Reference in new issue
Block a user