domain name fix
This commit is contained in:
1 parent
3c0479faf0
commit
dcdac915f9
6 files changed
+19
-17
No files matched your search
@@ -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/<compte>/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
|
||||
}
|
||||
```
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
big-brother.nucleus-ludus.fr {
|
||||
big-brother.davor-nucleus.fr {
|
||||
reverse_proxy big-brother:3333
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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"
|
||||
/>
|
||||
<span class="hint"
|
||||
|
||||
Reference in new issue
Block a user