Paperjet/.env.example
Elijah 65abb5154e
Some checks failed
CI / Backend (Python) (pull_request) Successful in 23s
CI / Frontend (TypeScript) (pull_request) Successful in 9m32s
CI / Container (Docker) (pull_request) Failing after 54s
Consolidate Docker deployment into a single PaperJet container
2026-08-15 11:07:59 -07:00

54 lines
2.1 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=replace-with-a-long-random-secret
# --------------------------------------------
# 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 PaperJet container publishes. Your outer reverse proxy targets this.
HTTP_PORT=4982
# Optional image reference for a pulled Forgejo build.
# Leave unset for local builds; set this before docker compose pull in production.
# PAPERJET_IMAGE=git.elijahkuntz.com/your-user/paperjet:latest
# --------------------------------------------
# Debug
# --------------------------------------------
# Enable debug mode (shows API docs at /api/v1/docs, enables verbose logging)
# DEBUG=false