This commit is contained in:
2026-08-17 19:08:20 +02:00
parent 312890f6e7
commit 8a8f748784
239 changed files with 369374 additions and 0 deletions

24
.env.example Normal file
View File

@ -0,0 +1,24 @@
# Copier ce fichier en .env et adapter les valeurs.
# (.env est ignoré par git)
# === PostgreSQL ===
POSTGRES_USER=pdfeditor
POSTGRES_PASSWORD=changeme
POSTGRES_DB=pdfeditor
# === Backend ===
# URL utilisée par le backend pour joindre la base (hôte "db" = nom du service docker)
DATABASE_URL=postgres://pdfeditor:changeme@db:5432/pdfeditor?sslmode=disable
JWT_SECRET=remplace-moi-par-une-longue-chaine-aleatoire
JWT_ACCESS_TTL=15m
JWT_REFRESH_TTL=168h
STORAGE_PATH=/data/documents
PORT=8080
# Origine autorisée pour le CORS (frontend). En prod, mettre l'URL publique.
CORS_ORIGIN=http://localhost:8080
# === Déploiement / images ===
REGISTRY=gitea.anthonybouteiller.ovh/blomios
IMAGE_TAG=latest
# Port HTTP exposé sur l'hôte par le frontend (nginx)
HTTP_PORT=8080