Mantræ Docs

Environment Variables

Environment variables and CLI reference for Mantræ.

Mantræ is primarily configured through environment variables.

Environment Variables

Core Settings

VariableDefaultRequiredDescription
SECRET-YesEncryption key (16, 24, or 32 bytes).
ADMIN_PASSWORDauto-generatedNoInitial admin password.
DEBUGfalseNoUse 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

VariableDefaultDescription
BACKUP_SCHEDULE0 2 * * *Cron schedule for auto-backups.
BACKUP_RETENTION30Number of days to retain backups.
BACKUP_AUTO_ENABLEDtrueEnable/disable automatic backups.

S3 Storage Settings

If STORAGE_TYPE=s3 is set:

VariableDescription
STORAGE_S3_ENDPOINTS3 API endpoint.
STORAGE_S3_REGIONS3 region.
STORAGE_S3_BUCKETS3 bucket name.
STORAGE_S3_ACCESS_KEYS3 access key.
STORAGE_S3_SECRET_KEYS3 secret key.

Command-Line Interface

The mantrae binary supports several commands for management.

Server Commands

# Start the server
mantrae

# Display version
mantrae --version

Password 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

On this page