feat: add superadmin management
This commit is contained in:
@@ -10,10 +10,11 @@ FRONTEND_ORIGIN=http://localhost:3000
|
||||
# Required in production. The development fallback must never be used outside localhost.
|
||||
JWT_SECRET=replace-this-with-a-long-random-secret-before-deploying
|
||||
|
||||
# Run `npm run db:bootstrap-admin` after setting these values to create the first admin.
|
||||
BOOTSTRAP_ADMIN_EMAIL=admin@example.com
|
||||
BOOTSTRAP_ADMIN_PASSWORD=change-this-password
|
||||
BOOTSTRAP_ADMIN_NAME=Compor HUB Admin
|
||||
# In Docker/Portainer, these create or update the superadmin every time the API starts.
|
||||
# Keep them out of Git and use a password with at least 12 characters.
|
||||
SUPERADMIN_EMAIL=admin@example.com
|
||||
SUPERADMIN_PASSWORD=change-this-password
|
||||
SUPERADMIN_NAME=Compor HUB Superadmin
|
||||
|
||||
# Docker Swarm / Portainer image tags. The defaults are the Gitea Container Registry images.
|
||||
API_IMAGE=gitea.blyzer.com.br/blyzer/compor-academy-api
|
||||
|
||||
Reference in New Issue
Block a user