Files
photoreport/apps/api/.env.example
T
sparkandClaude Opus 5.5 8947a51d83
ci / typescript (push) Successful in 15m12s
ci / rust (push) Successful in 22m16s
feat(shop): galleries on the public sites, Stripe checkout and rendered downloads
Sites per domain with two skins (PhotoReport, ShootYourMove) in apps/site (Next.js); public, unlisted and private galleries with watermarked photos; products, cart, orders with VIES reverse charge; the organization's own Stripe Checkout and signed webhooks; bought files rendered from the original with edits and IPTC, emailed; Vendas module in the app.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 22:36:16 +01:00

38 lines
1.4 KiB
Bash

NODE_ENV=production
PORT=3000
LOG_LEVEL=info
APP_VERSION=dev
DATABASE_URL=postgresql://photoreport:CHANGE_ME@pr-db:5432/photoreport
# At least 32 random characters, e.g. `openssl rand -base64 48`
JWT_SECRET=
ACCESS_TOKEN_TTL_SEC=900
REFRESH_TOKEN_TTL_DAYS=30
CORS_ORIGINS=https://app.next.photoreport.pt,tauri://localhost,http://tauri.localhost
APP_PUBLIC_URL=https://app.next.photoreport.pt
ALLOW_SIGNUP=false
# Library and ingest
STORAGE_ROOT=/srv/photoreport-data/storage
# SFTPGo home folders live under INGEST_ROOT/<ftp login>/
INGEST_ROOT=/srv/photoreport-data/ingest
INGEST_SCAN_INTERVAL_MS=2000
INGEST_CONCURRENCY=4
FILE_URL_TTL_SEC=3600
# Delivery (Nextcloud). 32 random bytes, base64: openssl rand -base64 32
DELIVERY_SECRET_KEY=
DELIVERY_CONCURRENCY=4
# Face recognition (organizations with biometrics switched on). Build: cargo build --release -p photoreport-faces
# Models: infra/faces/download-models.sh /srv/photoreport-data/models
FACES_BIN=/srv/photoreport/target/release/photoreport-faces
FACES_MODELS_DIR=/srv/photoreport-data/models
FACES_EMBEDDER=auraface
FACES_PROCESSES=2
# Develop: replays edits and renders edited thumbnails and deliveries (workers/render).
RENDER_BIN=/srv/photoreport/target/release/photoreport-render
RENDER_PROCESSES=2
# Shop: mail with the download link (optional) and the Stripe API (only changed for local tests).
# SMTP_URL=smtps://user:[email protected]:465
MAIL_FROM=PhotoReport <[email protected]>