Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

1.5 KB
Raw Blame
# Sample .env file for Alexandrie backend (this file list all available configuration variables but you don't have to fill all of them, just the ones you need to change from their default values)

# General configurations (should be changed)
FRONTEND_URL=http://localhost:3000
COOKIE_DOMAIN=localhost

# Database configuration
DATABASE_USER=root
DATABASE_PASSWORD=root

# Backend configuration
BACKEND_PORT=8021

## Security & JWT
JWT_SECRET=your_secret_key                           # Change this to a secure random string in production
ADMIN_ACCOUNTS=id1,id2,id3                           # Comma-separated list of user IDs that should have admin privileges (e.g., 1,2,3). Optional.

# S3 / MinIO configuration (optional, leave empty to disable)
MINIO_ACCESSKEY=alexandrie-access
MINIO_SECRETKEY=alexandrie-secret
MINIO_ENDPOINT=localhost:9000
MINIO_BUCKET=alexandrie
MINIO_PUBLIC_URL=http://localhost:9000


# SMTP configuration (optional, required only for password reset features)
SMTP_HOST=smtp.example.com
[email protected] # used for authentication and as default "from" address in emails
[email protected] # used as the "from" address in emails, if different from SMTP_MAIL
SMTP_PASSWORD=your_password


# Application flags
CONFIG_DISABLE_SIGNUP=false                          # Disable the signup page if set to true (e.g. for personal use or invite-only instances)
CONFIG_DISABLE_NATIVE_LOGIN=false                    # Used to force OIDC-only authentication (e.g., for Keycloak users)