# Configuring with environment variables

## General Configuration

- `DATABASE_URL` - The URL for connecting to the database.
- `SECRET_KEY_BASE` - A secret key used for various security purposes in the application. Can be generated with `openssl rand -hex 64`.
- `FORCE_SSL` - Set to `true` to enforce SSL.
- `HOST` - The domain name for your application.

## SMTP Configuration

- `SMTP_USERNAME` - The username for the SMTP server for sending emails.
- `SMTP_ADDRESS` - The address of the SMTP server.
- `SMTP_PORT` - The port number for the SMTP server.
- `SMTP_DOMAIN` - The domain used in the HELO command.
- `SMTP_PASSWORD` - The password for authenticating with the SMTP server.
- `SMTP_AUTHENTICATION` - The authentication method for the SMTP server ( **plain** or **login** ).
- `SMTP_FROM` - Email address to send emails from.
- `SMTP_ENABLE_STARTTLS` - Pass `false` to disable STARTTLS. Enabled by default.
- `SMTP_SSL_VERIFY` - Pass `false` to disable trusted certificate chain verification. Enabled by default.

## AWS S3 Configuration

- `AWS_ACCESS_KEY_ID` - The AWS access key ID for S3.
- `AWS_SECRET_ACCESS_KEY` - The AWS secret access key for S3.
- `AWS_REGION` - The AWS region where the S3 bucket is located.
- `S3_ATTACHMENTS_BUCKET` - The name of the S3 bucket for storing attachments.
- `S3_ENDPOINT` - The S3-compatible endpoint URL for the object storage service (set only when using an AWS S3-compatible alternative).

## GCP Storage Configuration

- `GCS_CREDENTIALS` - JSON string containing GCP credentials.
- `GCS_PROJECT` - The GCP project ID.
- `GCS_BUCKET` - The name of the GCP Storage bucket.

## Azure Cloud Configuration

- `AZURE_STORAGE_ACCOUNT_NAME` - The name of the Azure Storage account.
- `AZURE_STORAGE_ACCESS_KEY` - The access key for the Azure Storage account.
- `AZURE_CONTAINER` - The name of the Azure Storage container.

## Misc (optional)

- `WEB_CONCURRENCY` - the number of web processes to launch. By default, 1 process is launched, which utilizes 1 CPU core.
- `SESSION_REMEMBER_DAYS` - login session duration in days, default 730 days
- `PRESIGNED_URLS_EXPIRE_MINUTES` - expiration duration of presigned file urls, default 240 minutes
- `FILE_URLS_EXPIRE_MINUTES` - expiration duration of /file download urls, default 40 minutes
- `STRIPE_SECRET_KEY` - Stripe API key
- `GOTENBERG_URL` - Gotenberg app URL for DOCX and HTML support (Pro)