Renommage technique azuucine/kino -> bobinoo (déploiement, chemins, runner, docs)
deploy / deploy (push) Successful in 1m12s
deploy / deploy (push) Successful in 1m12s
- Workflow : runs-on bobinoo (le runner a les deux étiquettes pendant la transition). - Dossier de déploiement /srv/bobinoo (BOBINOO_ROOT, AZUUCINE_ROOT accepté pour compatibilité). - Config nginx, bootstrap, RUNNER.md, admin.md, CLAUDE.md : conteneur et runner « bobinoo ». - Nom du paquet npm et du plugin Vite. - Inchangé volontairement : clés localStorage, bases IndexedDB, fonctions SQL azuu_*, secret Vault, format d'export, migrations (renommer casserait les données existantes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
43e2ecd589
commit
2a9f790f19
14 files changed
+41
-41
No files matched your search
+3
-3
@@ -1,18 +1,18 @@
|
||||
# Runner Gitea (déploiement)
|
||||
|
||||
Le runner `kino` (étiquette `azuucine`) tourne dans le conteneur LXC `kino` du VPS. S'il est arrêté, plus rien ne se déploie.
|
||||
Le runner `bobinoo` (étiquette `bobinoo`) tourne dans le conteneur LXC `bobinoo` du VPS. S'il est arrêté, plus rien ne se déploie.
|
||||
|
||||
## Runner arrêté ?
|
||||
|
||||
Si plus aucun déploiement ne part (jobs « en attente » dans Gitea → Actions) :
|
||||
|
||||
```bash
|
||||
lxc-attach -n kino
|
||||
lxc-attach -n bobinoo
|
||||
systemctl status gitea-runner
|
||||
systemctl restart gitea-runner
|
||||
```
|
||||
|
||||
Depuis le 25 nov. 2026, `/etc/systemd/system/gitea-runner.service.d/relance.conf` (dans le conteneur `kino`)
|
||||
Depuis le 25 nov. 2026, `/etc/systemd/system/gitea-runner.service.d/relance.conf` (dans le conteneur `bobinoo`)
|
||||
le fait réessayer toutes les 15 s sans limite après un redémarrage du VPS (avant, il abandonnait si
|
||||
le proxy n'était pas encore prêt : 3 semaines sans déploiement en novembre 2026).
|
||||
|
||||
@@ -51,7 +51,7 @@ for (const [path, h] of blocks) {
|
||||
if (path.includes('*')) fail(`motif non géré : ${path}`)
|
||||
locations.push(
|
||||
`location = ${path} {`,
|
||||
' include /srv/azuucine/current/nginx/security-headers.conf;',
|
||||
' include /srv/bobinoo/current/nginx/security-headers.conf;',
|
||||
...add(h).map((l) => ` ${l}`),
|
||||
'}',
|
||||
)
|
||||
|
||||
@@ -11,7 +11,7 @@ server {
|
||||
server_name admin.bobinoo.org;
|
||||
server_tokens off;
|
||||
|
||||
root /srv/azuucine/current/admin;
|
||||
root /srv/bobinoo/current/admin;
|
||||
index index.html;
|
||||
include /etc/nginx/mime.types;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Configuration nginx du site AzuuCine (conteneur azuucine-web).
|
||||
# Livrée avec chaque release (copiée par deploy/release.sh) et lue via /srv/azuucine/current/nginx/site.conf :
|
||||
# Configuration nginx du site Bobinoo (conteneur bobinoo).
|
||||
# Livrée avec chaque release (copiée par deploy/release.sh) et lue via /srv/bobinoo/current/nginx/site.conf :
|
||||
# la configuration vit donc dans le dépôt, et un conteneur recréé la récupère au premier déploiement.
|
||||
# Les en-têtes de sécurité (security-headers.conf, locations.conf) sont, eux, générés depuis dist/_headers.
|
||||
server {
|
||||
@@ -7,7 +7,7 @@ server {
|
||||
server_name bobinoo.org www.bobinoo.org _;
|
||||
server_tokens off;
|
||||
|
||||
root /srv/azuucine/current/dist;
|
||||
root /srv/bobinoo/current/dist;
|
||||
index index.html;
|
||||
|
||||
# Adresse inconnue : vraie réponse 404 avec une page dédiée
|
||||
@@ -29,24 +29,24 @@ server {
|
||||
types { application/manifest+json webmanifest; }
|
||||
|
||||
# Règles par chemin issues de _headers (ex. /sw.js -> no-cache)
|
||||
include /srv/azuucine/current/nginx/locations.conf;
|
||||
include /srv/bobinoo/current/nginx/locations.conf;
|
||||
|
||||
# Fichiers hashés : cache immuable
|
||||
location /assets/ {
|
||||
include /srv/azuucine/current/nginx/security-headers.conf;
|
||||
include /srv/bobinoo/current/nginx/security-headers.conf;
|
||||
add_header Cache-Control "public, max-age=31536000, immutable" always;
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
include /srv/azuucine/current/nginx/security-headers.conf;
|
||||
include /srv/bobinoo/current/nginx/security-headers.conf;
|
||||
add_header Cache-Control "public, max-age=0, must-revalidate" always;
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
}
|
||||
|
||||
# Console d'administration : https://admin.bobinoo.org (voir admin.conf et docs/admin.md)
|
||||
include /srv/azuucine/current/nginx/admin.conf;
|
||||
include /srv/bobinoo/current/nginx/admin.conf;
|
||||
|
||||
# Raccourci vers le webmail de contact@bobinoo.org : https://mail.bobinoo.org (voir mail.conf)
|
||||
include /srv/azuucine/current/nginx/mail.conf;
|
||||
include /srv/bobinoo/current/nginx/mail.conf;
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Publie dist/ de façon atomique dans /srv/azuucine/releases/<date>-<sha> puis bascule le lien "current".
|
||||
# Publie dist/ de façon atomique dans /srv/bobinoo/releases/<date>-<sha> puis bascule le lien "current".
|
||||
# Garde les 3 dernières versions. Lancé par le workflow (utilisateur "deploy", sans sudo).
|
||||
set -euo pipefail
|
||||
ROOT=${AZUUCINE_ROOT:-/srv/azuucine}
|
||||
ROOT=${BOBINOO_ROOT:-${AZUUCINE_ROOT:-/srv/bobinoo}}
|
||||
KEEP=3
|
||||
SRC=${1:?usage: release.sh <dist> <sha>}
|
||||
SHA=${2:?usage: release.sh <dist> <sha>}
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# Revient à la version précédente (ou à celle donnée en argument). À lancer en root sur le VPS :
|
||||
# /srv/azuucine/rollback.sh -> version juste avant la courante
|
||||
# /srv/azuucine/rollback.sh <nom> -> une version précise (voir ls /srv/azuucine/releases)
|
||||
# /srv/bobinoo/rollback.sh -> version juste avant la courante
|
||||
# /srv/bobinoo/rollback.sh <nom> -> une version précise (voir ls /srv/bobinoo/releases)
|
||||
set -euo pipefail
|
||||
ROOT=${AZUUCINE_ROOT:-/srv/azuucine}
|
||||
ROOT=${BOBINOO_ROOT:-${AZUUCINE_ROOT:-/srv/bobinoo}}
|
||||
CUR=$(basename "$(readlink "$ROOT/current")")
|
||||
if [ -n "${1:-}" ]; then TARGET=$1
|
||||
else TARGET=$(ls -1 "$ROOT/releases" | sort -r | grep -A1 -x "$CUR" | tail -n1)
|
||||
|
||||
+10
-10
@@ -1,28 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
# À lancer UNE FOIS, en root, dans un conteneur azuucine-web neuf (Debian 12) :
|
||||
# lxc-attach -n azuucine-web -- bash < deploy/web/bootstrap.sh
|
||||
# Prérequis : /srv/azuucine monté dans le conteneur (lxc.mount.entry ... srv/azuucine none bind,ro).
|
||||
# À lancer UNE FOIS, en root, dans un conteneur bobinoo neuf (Debian 12) :
|
||||
# lxc-attach -n bobinoo -- bash < deploy/web/bootstrap.sh
|
||||
# Prérequis : /srv/bobinoo monté dans le conteneur (lxc.mount.entry ... srv/bobinoo none bind,ro).
|
||||
# Ensuite, toute la configuration du site arrive avec les déploiements (deploy/nginx/site.conf).
|
||||
set -euo pipefail
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update -qq && apt-get install -y -qq nginx >/dev/null
|
||||
rm -f /etc/nginx/sites-enabled/default
|
||||
echo 'include /srv/azuucine/current/nginx/site.conf;' > /etc/nginx/conf.d/azuucine.conf
|
||||
cat > /etc/systemd/system/azuucine-reload.path <<UNIT
|
||||
echo 'include /srv/bobinoo/current/nginx/site.conf;' > /etc/nginx/conf.d/bobinoo.conf
|
||||
cat > /etc/systemd/system/bobinoo-reload.path <<UNIT
|
||||
[Unit]
|
||||
Description=Recharge nginx apres un deploiement AzuuCine
|
||||
Description=Recharge nginx apres un deploiement Bobinoo
|
||||
[Path]
|
||||
PathModified=/srv/azuucine/.deployed
|
||||
PathModified=/srv/bobinoo/.deployed
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
UNIT
|
||||
cat > /etc/systemd/system/azuucine-reload.service <<UNIT
|
||||
cat > /etc/systemd/system/bobinoo-reload.service <<UNIT
|
||||
[Unit]
|
||||
Description=Reload nginx (deploiement AzuuCine)
|
||||
Description=Reload nginx (deploiement Bobinoo)
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c "nginx -t && systemctl reload nginx"
|
||||
UNIT
|
||||
systemctl daemon-reload
|
||||
systemctl enable --now azuucine-reload.path >/dev/null 2>&1
|
||||
systemctl enable --now bobinoo-reload.path >/dev/null 2>&1
|
||||
echo "ok : le premier déploiement (push sur main) activera le site"
|
||||
Reference in new issue
Block a user