From dcdac915f942ca3fcfe1661f627825570ed06c79 Mon Sep 17 00:00:00 2001 From: Rutra Date: Mon, 12 Oct 2026 14:39:06 +0200 Subject: [PATCH] domain name fix --- README.md | 16 +++++++++------- api/.env.example | 4 ++-- deploy/.env.example | 4 ++-- deploy/Caddyfile.block | 2 +- dev-srv/caddy/Caddyfile | 8 ++++---- web/src/app/pages/projects/project-new.html | 2 +- 6 files changed, 19 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 4f315a8..36ffff0 100644 --- a/README.md +++ b/README.md @@ -37,14 +37,16 @@ Le conteneur a accès au socket Docker et à `/srv` en écriture : **c'est l'éq Le projet suit la procédure : un dossier contenant `docker-compose.yml`, avec le dépôt cloné dans `project/`. -1. Créer le dépôt sur `git.nucleus-ludus.fr` et y pousser ce dossier. +1. Créer le dépôt sur `git.davor-nucleus.fr` et y pousser ce dossier. -2. Sur le VPS : +2. Dans la zone DNS de `davor-nucleus.fr` (chez OVH), ajouter un enregistrement `A` : sous-domaine `big-brother`, cible `51.68.230.117`. Sans enregistrement wildcard `*.davor-nucleus.fr`, chaque sous-domaine a besoin du sien, et Caddy ne peut pas obtenir de certificat HTTPS tant qu'il n'existe pas. + +3. Sur le VPS : ```bash mkdir -p /srv/fullstack/big-brother /root/backups cd /srv/fullstack/big-brother - git clone https://git.nucleus-ludus.fr//big-brother.git project + git clone https://git.davor-nucleus.fr/Rutra/big-brother.git project cp project/deploy/docker-compose.yml . cp project/deploy/.env.example .env nano .env @@ -57,23 +59,23 @@ Le projet suit la procédure : un dossier contenant `docker-compose.yml`, avec l Vérifier aussi `CADDY_CONTAINER` et `MARIADB_CONTAINER` : ce sont les noms de tes conteneurs Caddy et MariaDB. -3. Construire et lancer : +4. Construire et lancer : ```bash docker compose up -d --build docker compose logs -f ``` -4. Créer ton compte. La commande affiche un QR code à scanner avec ton application de double authentification (Aegis, 2FAS, Google Authenticator…) : +5. Créer ton compte. La commande affiche un QR code à scanner avec ton application de double authentification (Aegis, 2FAS, Google Authenticator…) : ```bash docker exec -it big-brother node ace user:create ``` -5. Ajouter le bloc à `/srv/caddy/Caddyfile` (voir `deploy/Caddyfile.block`), puis recharger Caddy : +6. Ajouter le bloc à `/srv/caddy/Caddyfile` (voir `deploy/Caddyfile.block`), puis recharger Caddy : ```caddyfile - big-brother.nucleus-ludus.fr { + big-brother.davor-nucleus.fr { reverse_proxy big-brother:3333 } ``` diff --git a/api/.env.example b/api/.env.example index c7e9fe3..2ef6f53 100644 --- a/api/.env.example +++ b/api/.env.example @@ -7,7 +7,7 @@ NODE_ENV=production # App LOG_LEVEL=info APP_KEY= -APP_URL=https://big-brother.nucleus-ludus.fr +APP_URL=https://big-brother.davor-nucleus.fr # Session SESSION_DRIVER=cookie @@ -29,7 +29,7 @@ CADDY_CONFIG_PATH=/etc/caddy/Caddyfile MARIADB_CONTAINER=mariadb # Projects -BASE_DOMAIN=nucleus-ludus.fr +BASE_DOMAIN=davor-nucleus.fr # Backups (empty BACKUP_DAILY_AT = no automatic backup) BACKUP_DAILY_AT=03:00 diff --git a/deploy/.env.example b/deploy/.env.example index e84e2e3..96cafb1 100644 --- a/deploy/.env.example +++ b/deploy/.env.example @@ -8,7 +8,7 @@ NODE_ENV=production LOG_LEVEL=info # Clé secrète (chiffre les cookies et les secrets 2FA) : openssl rand -base64 24 APP_KEY= -APP_URL=https://big-brother.nucleus-ludus.fr +APP_URL=https://big-brother.davor-nucleus.fr # Session SESSION_DRIVER=cookie @@ -30,7 +30,7 @@ CADDY_CONFIG_PATH=/etc/caddy/Caddyfile MARIADB_CONTAINER=mariadb # Projects -BASE_DOMAIN=nucleus-ludus.fr +BASE_DOMAIN=davor-nucleus.fr # Backups (empty BACKUP_DAILY_AT = no automatic backup) BACKUP_DAILY_AT=03:00 diff --git a/deploy/Caddyfile.block b/deploy/Caddyfile.block index 2204904..11f051f 100644 --- a/deploy/Caddyfile.block +++ b/deploy/Caddyfile.block @@ -1,3 +1,3 @@ -big-brother.nucleus-ludus.fr { +big-brother.davor-nucleus.fr { reverse_proxy big-brother:3333 } diff --git a/dev-srv/caddy/Caddyfile b/dev-srv/caddy/Caddyfile index 84313c6..60fd0fd 100644 --- a/dev-srv/caddy/Caddyfile +++ b/dev-srv/caddy/Caddyfile @@ -2,21 +2,21 @@ # Options globales } -git.nucleus-ludus.fr { +git.davor-nucleus.fr { reverse_proxy gitea:3000 } -portainer.nucleus-ludus.fr { +portainer.davor-nucleus.fr { reverse_proxy portainer:9000 } -portfolio.nucleus-ludus.fr { +portfolio.davor-nucleus.fr { root * /srv/html/portfolio encode gzip file_server try_files {path} /index.html } -apiportfolio.nucleus-ludus.fr { +apiportfolio.davor-nucleus.fr { reverse_proxy apiPortfolio:3333 } diff --git a/web/src/app/pages/projects/project-new.html b/web/src/app/pages/projects/project-new.html index 091b8a4..f770970 100644 --- a/web/src/app/pages/projects/project-new.html +++ b/web/src/app/pages/projects/project-new.html @@ -98,7 +98,7 @@ name="git" class="input mono" [(ngModel)]="gitUrl" - placeholder="https://git.nucleus-ludus.fr/compte/mon-projet.git" + placeholder="https://git.davor-nucleus.fr/compte/mon-projet.git" autocomplete="off" />