fix: nginx proxy URI, SW cache, sw.js no-cache

This commit is contained in:
Claude
2026-05-01 07:53:56 +02:00
parent 16820c5c14
commit e67574f1c6
8 changed files with 45 additions and 6 deletions
+10 -1
View File
@@ -44,4 +44,13 @@ ENV PORT=3001
# JWT_SECRET doit être injecté via variable d'environnement au runtime
HEALTHCHECK --interval=30s --timeout=10s --start-period=20s --retries=3 \
CMD wget -qO- http://localhost:
CMD wget -qO- http://localhost:3001/api/health || exit 1
EXPOSE 3001
# Volume pour SQLite DB + uploads (persistant entre les redémarrages)
VOLUME ["/app/data"]
# ts-node --transpile-only : contourne les erreurs de compilation tsc
# (dist/index.js produit par tsc est tronqué sur certains environnements Alpine)
CMD ["node_modules/.bin/ts-node", "--transpile-only", "src/index.ts"]