chore: rename project from osteo-report to zoosteo
Remote moved to git.bchanot.fr/bchanot/zoosteo.git; brand strings
and production URL updated to match new identity.
- package.json: name → zoosteo
- src/config/env.ts: AppConfig DEFAULTS → "Zoosteo"
- docker/entrypoint.sh: APP_*_NAME fallbacks → "Zoosteo"
- src/i18n/{fr,en}.ts: import error message + PDF title prefix
- src/pdf/attachment.ts: embedded description metadata "state v2"
- index.html: <title> fallback
- scripts/scaffold-species.mjs: console banner
- tests/unit/components.Brand.test.tsx: regex
- README.md, CLAUDE.md, CHANGELOG.md, docs/ADDING-A-SPECIES.md:
brand headings + intro lines
- DEPLOY.md: env defaults table + osteo.example.com → zoosteo.fr
(clone URL, paths, certbot, curl, container name references)
PDF attachment FILENAME 'osteo-report.json' and the startsWith
contract in src/pdf/attachment.ts:35,40 are preserved — changing
them would break PDF import for every PDF already exported by the
app. docs/superpowers/** and .claude/audits/** left unchanged as
historical records.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
fad3cb178a
commit
7dd4f633f8
14 files changed
+57
-57
No files matched your search
@@ -30,9 +30,9 @@ each one explicitly.
|
||||
|
||||
| Variable | Required | Default | Notes |
|
||||
| ----------------- | -------- | ---------------- | ------------------------------------------------------------------------------------ |
|
||||
| `APP_SITE_NAME` | yes | `Osteo Report` | Browser `<title>`, 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).
|
||||
|
||||
Reference in new issue
Block a user