50 lines
1.9 KiB
Text
50 lines
1.9 KiB
Text
# ============================================
|
|
# PaperJet Environment Configuration
|
|
# ============================================
|
|
# Copy this file to .env and adjust values.
|
|
# All variables are prefixed with PAPERJET_ in the
|
|
# backend's Pydantic Settings, but can also be set
|
|
# without prefix via this .env file.
|
|
|
|
# --------------------------------------------
|
|
# Security (REQUIRED — change in production!)
|
|
# --------------------------------------------
|
|
# Secret key for signing session cookies.
|
|
# Generate a strong random value: python -c "import secrets; print(secrets.token_urlsafe(32))"
|
|
SECRET_KEY=change-me-in-production
|
|
|
|
# --------------------------------------------
|
|
# Upload Limits
|
|
# --------------------------------------------
|
|
# Maximum upload file size in megabytes (default: 200)
|
|
# Must also be configured in the outer reverse proxy's client_max_body_size
|
|
MAX_UPLOAD_MB=200
|
|
|
|
# --------------------------------------------
|
|
# Retention
|
|
# --------------------------------------------
|
|
# Number of days soft-deleted documents stay in Trash before auto-purge (default: 30)
|
|
TRASH_RETENTION_DAYS=30
|
|
|
|
# Number of days auto-generated version snapshots are kept (default: 30)
|
|
# Manual versions are never auto-pruned.
|
|
AUTO_VERSION_RETENTION_DAYS=30
|
|
|
|
# --------------------------------------------
|
|
# Cookie / Session
|
|
# --------------------------------------------
|
|
# Set to true when running behind an HTTPS reverse proxy (production).
|
|
# Set to false for local development over plain HTTP.
|
|
COOKIE_SECURE=false
|
|
|
|
# --------------------------------------------
|
|
# Networking
|
|
# --------------------------------------------
|
|
# Port the frontend container publishes. Your outer reverse proxy targets this.
|
|
HTTP_PORT=4982
|
|
|
|
# --------------------------------------------
|
|
# Debug
|
|
# --------------------------------------------
|
|
# Enable debug mode (shows API docs at /api/v1/docs, enables verbose logging)
|
|
# DEBUG=false
|