Commit Graph
10 Commits
Author SHA1 Message Date
Esiah 739bc26b43 feat: e-mails brandes, controle d'espace disque, maintenance
Courriels
- gabarit HTML brande (logo, couleur #b71c1c, bouton, mention ne pas repondre)
  dans backend/src/lib/mail-template.ts ; repli texte conserve
- MailMessage gagne un champ html optionnel
- MAIL_LOGO_URL (defaut PUBLIC_ORIGIN/logo.png) + logo.png servi par le front
- notification au nouvel utilisateur a la creation du compte admin
- forgot-password, email-change et reset-password passent par le gabarit

Espace disque
- diskUsage() (statfs) dans storage.ts (total/free/available)
- upload et avatar refuses si le disque est plein (507 INSUFFICIENT_STORAGE)
- quota d'emplacement borne par la capacite reelle du disque
- statistiques disque exposees aux endpoints admin

Exploitation
- make purge-logs : vide le journal d'audit
- make reset : cloud vierge en conservant les administrateurs
- docker/reset-cloud.sql ; documentation deployment.md et api.md
2026-10-16 11:59:34 +02:00
Esiah f564908650 refactor: aplatir backend/cloud et frontend/cloud
Le niveau `cloud` etait redondant : il ne reste qu'une seule application.

- backend/cloud/* -> backend/*, frontend/cloud/* -> frontend/*
- workspaces npm : frontend et backend ; reference tsconfig ./backend
- extends tsconfig.base corrige (../ au lieu de ../../)
- docker-compose : APP_DIR backend/frontend, montage ./backend/migrations
- deploy.yml : reconstruit aussi l'image migrate
- chemins mis a jour dans les docs, le Makefile et docker/README.md
2026-10-16 11:50:55 +02:00
Esiah 75da61ac93 refactor: fold shared ui/server packages into the cloud app
Le depot ne contient plus qu'une seule application : plus de paquets
@cohaise/ui ni @cohaise/server.

- backend/shared/src -> backend/cloud/src/lib (socle serveur inline)
- frontend/shared/src -> frontend/cloud/src/{ui,styles,fonts}
- imports @cohaise/server / @cohaise/ui remplaces par des chemins relatifs
- package.json, tsconfig, Dockerfiles et docker-compose sans workspace partage
- docs (README, architecture, standards, workflow, agents, api, security,
  deployment, docker) alignes sur la structure autonome
2026-10-16 11:47:20 +02:00
Esiah 25b6e0669a Merge pull request 'fix(nginx): join shared-network and read real client IP via CF-Connecting-IP' (#3) from chore/cloudflare-shared-network into main
CD — Déploiement / deploy (push) Successful in 11s
Reviewed-on: #3
Reviewed-by: Esiah <[email protected]>
2026-10-16 09:24:49 +00:00
Esiah 23df7dd7c6 fix(nginx): join shared-network and read real client IP via CF-Connecting-IP
PR — Ouverture automatique / create-pr (push) Successful in 2s
- nginx rejoint le reseau externe shared-network pour que le tunnel
  Cloudflare le resolue par son nom (cohaise-cloud-nginx).
- real_ip_header CF-Connecting-IP :  devient l'IP reelle du
  client, sinon limit_req et l'audit comptent l'IP du tunnel.
- X-Forwarded-Proto reprend le schema vu par Cloudflare (https) au lieu de
  $scheme (http) : le cookie de session repasse en Secure.
- docs/deployment.md : tunnel Docker via shared-network, deploy.yml sans make check.
2026-10-16 11:18:18 +02:00
Esiah 72a491f8ed Merge pull request 'chore: host bind mounts for data and leaner deploy job' (#2) from chore/deploy-hardening into main
CD — Déploiement / deploy (push) Failing after 1m5s
Reviewed-on: #2
Reviewed-by: Esiah <[email protected]>
2026-10-16 08:55:43 +00:00
Esiah 4c2b58df00 chore: host bind mounts for data and leaner deploy job
PR — Ouverture automatique / create-pr (push) Successful in 2s
Store MariaDB and media data on the host disk via CLOUD_DB_DIR and CLOUD_MEDIA_DIR (default ../db, ../media) instead of Docker named volumes, so they live on the big disk and survive 'down -v'. Drop the host 'make check' from the deploy job: the image builds already run tsc for every workspace, so no Node toolchain is needed on the runner.
2026-10-16 10:53:44 +02:00
Esiah a22f18d860 chore: store database and media on host bind mounts
CD — Déploiement / deploy (push) Failing after 1s
Move MariaDB and media data out of /var/lib/docker onto the host disk via CLOUD_DB_DIR and CLOUD_MEDIA_DIR (default ../db, ../media). Only the frontend build output remains a named volume.
2026-10-16 10:47:12 +02:00
Esiah 37e0b542ae ci: allow manual PR run and skip main as base
PR — Ouverture automatique / create-pr (push) Successful in 3s
CD — Déploiement / deploy (push) Failing after 1s
2026-10-14 15:48:08 +02:00
Esiah cc397e96d8 chore: initial import of CoHaiSe Cloud
PR — Ouverture automatique / create-pr (push) Failing after 1s
Standalone files & media application: React/Vite frontend with the @cohaise/ui design system, Hono + MariaDB backend, nginx reverse proxy, Docker Compose stack, migrations 000-006, and project docs.

Adds Gitea Actions workflows for deployment, automatic pull requests, and Renovate dependency updates.
2026-10-14 15:24:06 +02:00