diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b974dde..6a1ac312 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -All notable changes to **Osteo Report** are documented here. +All notable changes to **Zoosteo** are documented here. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versions follow [Semantic Versioning](https://semver.org/). @@ -105,7 +105,7 @@ restores the session for a follow-up. - **PDF date format** — locale-aware via `formatDate(iso, locale)`, replacing the FR-only `formatDateFr` helper. - **Default branch** — `main` → `master` (matches the Gitea remote at - `https://git.bchanot.fr/bchanot/osteo-report.git`). + `https://git.bchanot.fr/bchanot/zoosteo.git`). ### Fixed @@ -183,7 +183,7 @@ These were never tagged but are reflected in git history on `master`. catalog landed, `requires_vet_referral` becomes the sole source of truth, PDF vet marker swapped to a WinAnsi-safe surrogate. Docs refreshed, `DEPLOY.md` + `CHANGELOG.md` written, default branch - renamed `master`, repo pushed to `https://git.bchanot.fr/bchanot/osteo-report.git`. + renamed `master`, repo pushed to `https://git.bchanot.fr/bchanot/zoosteo.git`. -[Unreleased]: https://git.bchanot.fr/bchanot/osteo-report/compare/v1.0.0...HEAD -[1.0.0]: https://git.bchanot.fr/bchanot/osteo-report/releases/tag/v1.0.0 +[Unreleased]: https://git.bchanot.fr/bchanot/zoosteo/compare/v1.0.0...HEAD +[1.0.0]: https://git.bchanot.fr/bchanot/zoosteo/releases/tag/v1.0.0 diff --git a/CLAUDE.md b/CLAUDE.md index 745f88cf..7fdeae8b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,4 +1,4 @@ -# Osteo Report — CLAUDE.md +# Zoosteo — CLAUDE.md # Generated by scaffolder 2026-05-18. Single source of truth for Claude in this repo. # Global rules: ~/.claude/CLAUDE.md — this file extends or overrides them. @@ -68,7 +68,7 @@ pnpm format ```bash # Build image -docker build -t osteo-report . +docker build -t zoosteo . # Run with compose (reads .env for APP_* vars) docker compose up --build diff --git a/DEPLOY.md b/DEPLOY.md index cd365a34..3bb3f59c 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -30,9 +30,9 @@ each one explicitly. | Variable | Required | Default | Notes | | ----------------- | -------- | ---------------- | ------------------------------------------------------------------------------------ | -| `APP_SITE_NAME` | yes | `Osteo Report` | Browser ``, OG `site_name`. | -| `APP_BRAND_NAME` | yes | `Osteo Report` | Header brand block, PDF header. Praticien-visible identity. | -| `APP_FOOTER_NAME` | yes | `Osteo Report` | Footer copyright line. | +| `APP_SITE_NAME` | yes | `Zoosteo` | Browser `<title>`, OG `site_name`. | +| `APP_BRAND_NAME` | yes | `Zoosteo` | Header brand block, PDF header. Praticien-visible identity. | +| `APP_FOOTER_NAME` | yes | `Zoosteo` | Footer copyright line. | | `APP_TAGLINE` | yes | `Bilans d'ostéopathie animalière` | Hero tagline on Home. | | `PORT` | no | `8080` | Container listen port. Override to relocate the loopback bind. | @@ -59,8 +59,8 @@ DNS: ```text # A record on your domain registrar / DNS provider -osteo.example.com → <vps-ipv4> -osteo.example.com (AAAA) → <vps-ipv6> # optional +zoosteo.fr → <vps-ipv4> +zoosteo.fr (AAAA) → <vps-ipv6> # optional ``` SSH key copied to the VPS before disabling password auth (see Hardening @@ -145,8 +145,8 @@ docker info | grep -i 'logging driver\|live restore' ```bash # As your non-root deploy user (see Hardening §1 if you have not made one yet) cd ~ -git clone https://git.bchanot.fr/bchanot/osteo-report.git -cd osteo-report +git clone https://git.bchanot.fr/bchanot/zoosteo.git +cd zoosteo # Configure identity cp .env.example .env @@ -174,7 +174,7 @@ This project has no `scripts/deploy.sh` yet. Pull-and-recompose from the VPS is the path: ```bash -cd ~/osteo-report +cd ~/zoosteo git fetch origin git reset --hard origin/master # default branch is "master" on this remote docker compose up --build -d @@ -185,7 +185,7 @@ Verify post-deploy: ```bash docker compose ps -curl -sI https://osteo.example.com/ | head -3 +curl -sI https://zoosteo.fr/ | head -3 ``` For zero-downtime updates, `docker compose up --build -d` rebuilds the @@ -224,7 +224,7 @@ set -e DEST="/var/backups/osteo" DATE="$(date -u +%Y%m%d)" mkdir -p "$DEST" -cp /home/<deploy-user>/osteo-report/.env "$DEST/env-$DATE" +cp /home/<deploy-user>/zoosteo/.env "$DEST/env-$DATE" chmod 600 "$DEST/env-$DATE" find "$DEST" -name 'env-*' -mtime +30 -delete ``` @@ -257,9 +257,9 @@ aws s3 sync /var/backups/osteo s3://<bucket>/osteo/ --storage-class STANDARD_IA ```bash docker compose down -cp /var/backups/osteo/env-<date> /home/<deploy-user>/osteo-report/.env +cp /var/backups/osteo/env-<date> /home/<deploy-user>/zoosteo/.env docker compose up --build -d -curl -sI https://osteo.example.com/ +curl -sI https://zoosteo.fr/ ``` The praticien's exported PDFs are the real long-term store. If the VPS @@ -280,7 +280,7 @@ VPS: server { listen 80; listen [::]:80; - server_name osteo.example.com; + server_name zoosteo.fr; # Certbot will rewrite this block to add the 301 redirect. location /.well-known/acme-challenge/ { root /var/www/letsencrypt; @@ -298,7 +298,7 @@ server { server { listen 443 ssl http2; listen [::]:443 ssl http2; - server_name osteo.example.com; + server_name zoosteo.fr; # ssl_certificate + ssl_certificate_key written by certbot @@ -318,7 +318,7 @@ Enable + obtain certificate: ```bash ln -s /etc/nginx/sites-available/osteo /etc/nginx/sites-enabled/osteo nginx -t && systemctl reload nginx -certbot --nginx -d osteo.example.com +certbot --nginx -d zoosteo.fr systemctl status certbot.timer # auto-renew preinstalled on Ubuntu ``` @@ -340,10 +340,10 @@ Reload + verify: ```bash nginx -t && systemctl reload nginx -curl -sI https://osteo.example.com/ | grep -iE 'strict-transport|x-frame|content-security' +curl -sI https://zoosteo.fr/ | grep -iE 'strict-transport|x-frame|content-security' # Cross-check externally: -# https://securityheaders.com/?q=osteo.example.com -# https://www.ssllabs.com/ssltest/analyze.html?d=osteo.example.com +# https://securityheaders.com/?q=zoosteo.fr +# https://www.ssllabs.com/ssltest/analyze.html?d=zoosteo.fr ``` The `'unsafe-inline'` on `style-src` is needed because Tailwind injects @@ -362,7 +362,7 @@ echo "deb [signed-by=/usr/share/keyrings/caddy-stable-archive-keyring.gpg] https apt-get update && apt-get install -y caddy cat > /etc/caddy/Caddyfile <<'EOF' -osteo.example.com { +zoosteo.fr { encode gzip zstd reverse_proxy 127.0.0.1:8080 header { @@ -394,13 +394,13 @@ N/A. There is no build-time API URL var; the app is static. ```bash # HTTPS redirect on port 80 -curl -sI http://osteo.example.com/ | grep -i location # expect Location: https://... +curl -sI http://zoosteo.fr/ | grep -i location # expect Location: https://... # TLS itself -curl -sI https://osteo.example.com/ | head -3 # expect HTTP/2 200 +curl -sI https://zoosteo.fr/ | head -3 # expect HTTP/2 200 # env.js shipped fresh (no caching) -curl -sI https://osteo.example.com/env.js | grep -i cache-control +curl -sI https://zoosteo.fr/env.js | grep -i cache-control # expect: Cache-Control: no-store, no-cache, must-revalidate # Internal port is NOT publicly bound @@ -439,7 +439,7 @@ Reload + verify on a second terminal *before* closing the first one: ```bash systemctl reload ssh -ssh deploy@osteo.example.com 'echo ok' +ssh deploy@zoosteo.fr 'echo ok' ``` ### 3. (Optional) Move SSH off port 22 @@ -451,7 +451,7 @@ ufw allow 2222/tcp # 1. UFW # 2. Add 2222 to cloud security group # 3. /etc/ssh/sshd_config: Port 2222 (keep Port 22 temporarily) systemctl reload ssh -ssh -p 2222 deploy@osteo.example.com 'echo ok' # confirm +ssh -p 2222 deploy@zoosteo.fr 'echo ok' # confirm # 4. Remove Port 22 from sshd_config + UFW + cloud SG ``` @@ -484,7 +484,7 @@ nmap -Pn -p 22,80,443,8080,2222 <vps-public-ip> # 2222: open ← if SSH was moved # Password-SSH attempt — should fail -ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no deploy@osteo.example.com +ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no deploy@zoosteo.fr # Expect: Permission denied (publickey). ``` @@ -493,11 +493,11 @@ ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no deploy@osteo ## Rollback ```bash -cd ~/osteo-report +cd ~/zoosteo git reflog | head -20 # find the known-good SHA git reset --hard <known-good-sha> docker compose up --build -d -curl -sI https://osteo.example.com/ | head -1 +curl -sI https://zoosteo.fr/ | head -1 ``` Because there is no server-side state to corrupt, rollback is purely a @@ -510,10 +510,10 @@ already exported are unaffected. | URL | Expected | | --------------------------------------- | ----------------------------------------- | -| `https://osteo.example.com/` | HTTP/2 200, HTML containing `<div id="root">` | -| `https://osteo.example.com/env.js` | HTTP/2 200, `Cache-Control: no-store, no-cache, must-revalidate`, body starts with `window.__APP_CONFIG__ = {` | -| `https://osteo.example.com/assets/<hash>.js` | HTTP/2 200, `Cache-Control: public, max-age=31536000, immutable` | -| `https://osteo.example.com/nonexistent` | HTTP/2 200 (SPA fallback serves `index.html`) | +| `https://zoosteo.fr/` | HTTP/2 200, HTML containing `<div id="root">` | +| `https://zoosteo.fr/env.js` | HTTP/2 200, `Cache-Control: no-store, no-cache, must-revalidate`, body starts with `window.__APP_CONFIG__ = {` | +| `https://zoosteo.fr/assets/<hash>.js` | HTTP/2 200, `Cache-Control: public, max-age=31536000, immutable` | +| `https://zoosteo.fr/nonexistent` | HTTP/2 200 (SPA fallback serves `index.html`) | | `http://127.0.0.1:8080/` (on VPS) | HTTP/1.1 200 | There is no `/health` endpoint — the container only serves static assets. @@ -615,7 +615,7 @@ from `/var/lib/docker/containers/<id>/*.log` anyway, lower the cap in (`/etc/docker/daemon.json`). Host nginx logs in `/var/log/nginx/`; rotate via logrotate (default Ubuntu config). Certbot logs in `/var/log/letsencrypt/`. -- **Manual log prune**: `docker compose logs --no-color > /tmp/x; truncate -s 0 $(docker inspect --format='{{.LogPath}}' osteo-report-app-1)`. +- **Manual log prune**: `docker compose logs --no-color > /tmp/x; truncate -s 0 $(docker inspect --format='{{.LogPath}}' zoosteo-app-1)`. - **Key rotation**: `.env` carries no secret material, but if `APP_BRAND_NAME` etc. need to change, edit `.env` + `docker compose up -d` (no rebuild — `entrypoint.sh` reads env on container start). diff --git a/README.md b/README.md index e84eeacd..36778dc0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Osteo Report +# Zoosteo Web app for veterinary osteopaths to write session bilans on animal anatomy SVGs — click zones, build observations, export a self-contained PDF with the @@ -86,7 +86,7 @@ pnpm build # tsc + vite build → dist/ ```bash pnpm build # production build → dist/ -docker build -t osteo-report . # multi-stage Docker image +docker build -t zoosteo . # multi-stage Docker image docker compose up --build # run with env_file: .env ``` diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 4357ba23..3044e58d 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -9,14 +9,14 @@ ENV_JS="/usr/share/nginx/html/env.js" cat > "$ENV_JS" <<EOF window.__APP_CONFIG__ = { - siteName: "${APP_SITE_NAME:-Osteo Report}", - brandName: "${APP_BRAND_NAME:-Osteo Report}", - footerName: "${APP_FOOTER_NAME:-Osteo Report}", + siteName: "${APP_SITE_NAME:-Zoosteo}", + brandName: "${APP_BRAND_NAME:-Zoosteo}", + footerName: "${APP_FOOTER_NAME:-Zoosteo}", tagline: "${APP_TAGLINE:-Bilans d'ostéopathie animalière}" }; EOF -echo "env.js written: APP_BRAND_NAME=${APP_BRAND_NAME:-Osteo Report}" +echo "env.js written: APP_BRAND_NAME=${APP_BRAND_NAME:-Zoosteo}" # Replace PORT placeholder in nginx config if needed # (nginx:alpine supports envsubst via templates; we keep it explicit) diff --git a/docs/ADDING-A-SPECIES.md b/docs/ADDING-A-SPECIES.md index 4730f2c6..af5850fa 100644 --- a/docs/ADDING-A-SPECIES.md +++ b/docs/ADDING-A-SPECIES.md @@ -1,6 +1,6 @@ # Adding a New Species -Osteo Report ships with one species (`equine`). Adding a new one is +Zoosteo ships with one species (`equine`). Adding a new one is mostly authoring work — anatomy SVGs and a findings JSON — backed by a small amount of boilerplate that the project can scaffold for you. diff --git a/index.html b/index.html index 46dbb803..ebce602b 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content="Bilans d'ostéopathie animalière" /> <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> - <title>Osteo Report + Zoosteo