CI : doc change
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
# --- Image ------------------------------------------------------------------
|
||||
# Renseigner l'hôte de ton instance Gitea et le propriétaire du paquet.
|
||||
IMAGE=gitea.exemple.com/jeanbon/stream-control-server:latest
|
||||
IMAGE=git.jeanbonapp.com/jeanbon/stream-control-server:latest
|
||||
|
||||
# --- Publication du port ----------------------------------------------------
|
||||
# Interface d'écoute. Mets l'IP LAN/VPN de la machine si elle a aussi une patte
|
||||
|
||||
18
DEPLOY.md
18
DEPLOY.md
@@ -43,7 +43,7 @@ Dans **Paramètres du dépôt → Actions → Secrets**, ajoute :
|
||||
|
||||
Le workflow déduit l'hôte du registre de l'URL de ton instance. Si elle est
|
||||
publiée sous un autre nom que celui vu par les runners, ajoute la variable
|
||||
`REGISTRY_HOST` (par ex. `gitea.exemple.com`, sans schéma).
|
||||
`REGISTRY_HOST` (par ex. `git.jeanbonapp.com`, sans schéma).
|
||||
|
||||
### Vérifier les runners
|
||||
|
||||
@@ -80,8 +80,8 @@ Sur la machine du plan de contrôle :
|
||||
mkdir -p /opt/stream-control && cd /opt/stream-control
|
||||
|
||||
# Récupérer compose et modèle d'environnement depuis le dépôt
|
||||
curl -fsSLO https://gitea.exemple.com/jeanbon/stream-control/raw/branch/main/docker-compose.yml
|
||||
curl -fsSL https://gitea.exemple.com/jeanbon/stream-control/raw/branch/main/.env.production.example -o .env
|
||||
curl -fsSLO https://git.jeanbonapp.com/jeanbon/stream-control/raw/branch/main/docker-compose.yml
|
||||
curl -fsSL https://git.jeanbonapp.com/jeanbon/stream-control/raw/branch/main/.env.production.example -o .env
|
||||
chmod 600 .env
|
||||
```
|
||||
|
||||
@@ -96,7 +96,7 @@ echo "ENROLLMENT_TOKEN=$(openssl rand -hex 24)"
|
||||
|
||||
| Variable | Rôle |
|
||||
| --- | --- |
|
||||
| `IMAGE` | `gitea.exemple.com/jeanbon/stream-control-server:latest` |
|
||||
| `IMAGE` | `git.jeanbonapp.com/jeanbon/stream-control-server:latest` |
|
||||
| `ADMIN_PASSWORD` | Mot de passe du dashboard |
|
||||
| `SESSION_SECRET` | Clé de signature des sessions |
|
||||
| `ENROLLMENT_TOKEN` | Jeton présenté par les agents à leur première connexion |
|
||||
@@ -105,7 +105,7 @@ echo "ENROLLMENT_TOKEN=$(openssl rand -hex 24)"
|
||||
Puis :
|
||||
|
||||
```bash
|
||||
docker login gitea.exemple.com -u jeanbon # jeton avec la portée package
|
||||
docker login git.jeanbonapp.com -u jeanbon # jeton avec la portée package
|
||||
docker compose up -d
|
||||
docker compose logs -f
|
||||
```
|
||||
@@ -141,9 +141,9 @@ persiste.
|
||||
### Ubuntu
|
||||
|
||||
```bash
|
||||
curl -fsSL https://gitea.exemple.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.sh \
|
||||
curl -fsSL https://git.jeanbonapp.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.sh \
|
||||
| sudo bash -s -- \
|
||||
--registry https://gitea.exemple.com \
|
||||
--registry https://git.jeanbonapp.com \
|
||||
--server ws://control.lan:8080/ws/agent \
|
||||
--token <JETON_ENROLEMENT> \
|
||||
--name vm-rec-01 \
|
||||
@@ -161,8 +161,8 @@ graphique d'OBS. Force-le avec `--user` si ce n'est pas le bon.
|
||||
Dans un PowerShell **administrateur**, sur le compte qui lance OBS :
|
||||
|
||||
```powershell
|
||||
& ([scriptblock]::Create((irm 'https://gitea.exemple.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.ps1'))) `
|
||||
-Registry 'https://gitea.exemple.com' `
|
||||
& ([scriptblock]::Create((irm 'https://git.jeanbonapp.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.ps1'))) `
|
||||
-Registry 'https://git.jeanbonapp.com' `
|
||||
-Server 'ws://control.lan:8080/ws/agent' `
|
||||
-Token '<JETON_ENROLEMENT>' `
|
||||
-Name 'vm-rec-02' `
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
déjà enrôlé.
|
||||
|
||||
.EXAMPLE
|
||||
& ([scriptblock]::Create((irm 'https://gitea.exemple.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.ps1'))) `
|
||||
-Registry 'https://gitea.exemple.com' `
|
||||
& ([scriptblock]::Create((irm 'https://git.jeanbonapp.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.ps1'))) `
|
||||
-Registry 'https://git.jeanbonapp.com' `
|
||||
-Server 'ws://control.lan:8080/ws/agent' `
|
||||
-Token '<JETON_ENROLEMENT>'
|
||||
#>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
#
|
||||
# Installe (ou met à jour) l'agent Stream Control sur une VM Linux.
|
||||
#
|
||||
# curl -fsSL https://gitea.exemple.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.sh \
|
||||
# curl -fsSL https://git.jeanbonapp.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.sh \
|
||||
# | sudo bash -s -- \
|
||||
# --registry https://gitea.exemple.com \
|
||||
# --registry https://git.jeanbonapp.com \
|
||||
# --server ws://control.lan:8080/ws/agent \
|
||||
# --token <JETON_ENROLEMENT>
|
||||
#
|
||||
@@ -37,9 +37,9 @@ usage() {
|
||||
cat <<'EOF'
|
||||
Installe (ou met à jour) l'agent Stream Control sur une VM Linux.
|
||||
|
||||
curl -fsSL https://gitea.exemple.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.sh \
|
||||
curl -fsSL https://git.jeanbonapp.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.sh \
|
||||
| sudo bash -s -- \
|
||||
--registry https://gitea.exemple.com \
|
||||
--registry https://git.jeanbonapp.com \
|
||||
--server ws://control.lan:8080/ws/agent \
|
||||
--token <JETON_ENROLEMENT>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user