Skip to main content

Environment Variables

Complete reference for all environment variables used by Flo. Configure these in your .env file.

Database

VariableRequiredDescription
DB_NAMEYesPostgreSQL database name
DB_USERYesPostgreSQL username
DB_PASSWORDYesPostgreSQL password
DB_CONNECTION_STRINGYesFull connection string (overrides individual vars)

Connection string format:

Host=<IP>;Port=<PORT>;Database=<DB>;Username=<USER>;Password=<PASS>;SSL Mode=Disable

Authentication

VariableRequiredDescription
JWT_ISSUERYesToken issuer URL (e.g., https://api.yourdomain.com)
JWT_AUDIENCEYesToken audience URL
COOKIE_DOMAINYesCookie domain for cross-subdomain auth (e.g., .yourdomain.com)
OIDC_SIGNING_CERT_PATHFor OIDCPath to OpenIddict signing certificate (.pfx)
OIDC_SIGNING_CERT_PASSWORDFor OIDCSigning certificate password
OIDC_ENCRYPTION_CERT_PATHFor OIDCPath to encryption certificate (.pfx)
OIDC_ENCRYPTION_CERT_PASSWORDFor OIDCEncryption certificate password

Email

VariableRequiredDescription
EMAIL_SENDER_EMAIL_PROVIDERYesProvider name: Gmail, Cloudflare, Smtp
EMAIL_SENDER_EMAIL_USERNAMEYesSMTP username / Gmail account
EMAIL_SENDER_EMAIL_ALIASNoPublic-facing sender address
EMAIL_SENDER_EMAIL_PSWYesSMTP password / App Password

Application URLs

VariableRequiredDescription
FLO_APP_URLYesBackend API URL (e.g., https://api.yourdomain.com)
FE_APP_URLYesFrontend URL (e.g., https://app.yourdomain.com)
ASPNETCORE_ENVIRONMENTYesProduction or Development

Branding & Whitelabeling

VariableRequiredDescription
FORCE_RESPIRASTUDIO_UINoForce Respirastudio brand theme (true/false)
FLO_CUSTOMER_NAME_ITNoCustomer display name in Italian (for emails/UI)
FLO_CUSTOMER_NAME_ENNoCustomer display name in English

Strapi CMS Integration

VariableRequiredDescription
STRAPI_ENABLEDNoEnable Strapi integration (true/false)
STRAPI_BASE_URLIf enabledStrapi API URL
STRAPI_API_KEYIf enabledStrapi API token

Frontend (Angular)

These are configured in Flo.FE/src/environments/environment.ts:

PropertyDescription
productionProduction mode flag
baseUrlBackend API URL
forceRespirastudioUIForce Respirastudio theme
strapiEnabledEnable Strapi CMS integration
strapiBaseUrlStrapi API URL
canTranslateUIShow language switcher
fixedLanguageLock to specific language (for whitelabel)

Example .env File

# Database
DB_NAME=flo
DB_USER=flo_user
DB_PASSWORD=secure_password
DB_CONNECTION_STRING=Host=db;Port=5432;Database=flo;Username=flo_user;Password=secure_password;

# Auth
JWT_ISSUER=https://api.yourdomain.com
JWT_AUDIENCE=https://api.yourdomain.com
COOKIE_DOMAIN=.yourdomain.com

# Email
EMAIL_SENDER_EMAIL_PROVIDER=Cloudflare
EMAIL_SENDER_EMAIL_USERNAME=newsletter
[email protected]
EMAIL_SENDER_EMAIL_PSW=smtp_password

# URLs
FLO_APP_URL=https://api.yourdomain.com
FE_APP_URL=https://app.yourdomain.com
ASPNETCORE_ENVIRONMENT=Production

# Branding
FLO_CUSTOMER_NAME_IT=Il Tuo Studio
FLO_CUSTOMER_NAME_EN=Your Studio

See .env.example in the repository for the most up-to-date reference.