Environment Variables
Environment variables and CLI reference for Mantræ.
Mantræ is primarily configured through environment variables.
Environment Variables
Core Settings
| Variable | Default | Required | Description |
|---|---|---|---|
SECRET | - | Yes | Encryption key (16, 24, or 32 bytes). |
ADMIN_PASSWORD | auto-generated | No | Initial admin password. |
DEBUG | false | No | Use debug logging. |
Security
The SECRET variable is critical for encrypting sensitive data in the database. Ensure it is kept secure and not changed once data is stored.
Backup Settings
| Variable | Default | Description |
|---|---|---|
BACKUP_SCHEDULE | 0 2 * * * | Cron schedule for auto-backups. |
BACKUP_RETENTION | 30 | Number of days to retain backups. |
BACKUP_AUTO_ENABLED | true | Enable/disable automatic backups. |
S3 Storage Settings
If STORAGE_TYPE=s3 is set:
| Variable | Description |
|---|---|
STORAGE_S3_ENDPOINT | S3 API endpoint. |
STORAGE_S3_REGION | S3 region. |
STORAGE_S3_BUCKET | S3 bucket name. |
STORAGE_S3_ACCESS_KEY | S3 access key. |
STORAGE_S3_SECRET_KEY | S3 secret key. |
Command-Line Interface
The mantrae binary supports several commands for management.
Server Commands
# Start the server
mantrae
# Display version
mantrae --versionPassword Management
If you forget your admin password, you can reset it via the CLI:
# Reset admin password
mantrae reset --password newpassword
# Reset a specific user
mantrae reset --user username --password newpassword