TIMEZONE=UTC

# Postgres
POSTGRES_HOST=teable-db
POSTGRES_PORT=5432
POSTGRES_DB=example
POSTGRES_USER=example
POSTGRES_PASSWORD=example2password

# Redis
REDIS_HOST=teable-cache
REDIS_PORT=6379
REDIS_DB=0
REDIS_PASSWORD=replace_this_password

# App
PUBLIC_ORIGIN=http://127.0.0.1:3000
# Optional: enable browser session Origin checks for unsafe API requests.
# Enable only when your reverse proxy or CDN preserves Origin and Sec-Fetch-* headers.
#BACKEND_SESSION_ORIGIN_CHECK_ENABLED=true
PRISMA_DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}

# Prisma Transaction Defaults (optional)
# Maximum time (ms) a transaction can run before timing out. Default: 5000
# Increase this if you have long-running transactions (e.g., bulk updates with many links)
#PRISMA_TRANSACTION_TIMEOUT=60000
# Maximum time (ms) to wait to acquire a transaction from the pool. Default: 2000
#PRISMA_TRANSACTION_MAX_WAIT=5000

# Need to support sending emails to enable the following configurations
# You need to modify the configuration according to the actual situation, otherwise it will not be able to send emails correctly.
#BACKEND_MAIL_HOST=smtp.teable.ai
#BACKEND_MAIL_PORT=465
#BACKEND_MAIL_SECURE=true
#BACKEND_MAIL_SENDER=noreply.teable.ai
#BACKEND_MAIL_SENDER_NAME=Teable
#BACKEND_MAIL_AUTH_USER=username
#BACKEND_MAIL_AUTH_PASS=password

BACKEND_CACHE_REDIS_URI=redis://default:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/${REDIS_DB}
