Initial commit - Migration documentation 2026
This commit is contained in:
118
docs/vault/reference/commands.md
Normal file
118
docs/vault/reference/commands.md
Normal file
@@ -0,0 +1,118 @@
|
||||
# Commandes utiles
|
||||
|
||||
## Docker
|
||||
|
||||
```bash
|
||||
# Status de tous les containers
|
||||
docker ps -a
|
||||
|
||||
# Logs dun service
|
||||
docker logs -f <container>
|
||||
|
||||
# Redémarrer un service
|
||||
docker restart <container>
|
||||
|
||||
# Recréer un service (après modif compose)
|
||||
cd ~/docker/talloires && docker compose up -d <service>
|
||||
|
||||
# Tout redémarrer
|
||||
cd ~/docker/talloires && docker compose down && docker compose up -d
|
||||
|
||||
# Shell dans un container
|
||||
docker exec -it <container> sh
|
||||
```
|
||||
|
||||
## Caddy
|
||||
|
||||
```bash
|
||||
# Recharger la config
|
||||
docker exec caddy caddy reload --config /etc/caddy/Caddyfile
|
||||
|
||||
# Voir les logs
|
||||
docker logs caddy -f
|
||||
|
||||
# Tester la config
|
||||
docker exec caddy caddy validate --config /etc/caddy/Caddyfile
|
||||
```
|
||||
|
||||
## Authelia
|
||||
|
||||
```bash
|
||||
# Logs
|
||||
docker logs authelia -f
|
||||
|
||||
# Générer un hash de mot de passe
|
||||
docker exec authelia authelia crypto hash generate argon2 --password "motdepasse"
|
||||
|
||||
# Générer un hash pour OIDC secret
|
||||
docker exec authelia authelia crypto hash generate pbkdf2 --password "secret"
|
||||
```
|
||||
|
||||
## Backup
|
||||
|
||||
```bash
|
||||
# Lancer un backup manuel
|
||||
~/backup-to-annecy.sh
|
||||
|
||||
# Voir le log
|
||||
cat ~/backup.log
|
||||
|
||||
# Lister les backups sur Annecy
|
||||
sudo ssh -i /root/.ssh/id_ed25519 rsync-talloires@10.171.171.50 "ls -lh /volume1/Backups/talloires/"
|
||||
```
|
||||
|
||||
## Système
|
||||
|
||||
```bash
|
||||
# Espace disque
|
||||
df -h
|
||||
|
||||
# Mémoire
|
||||
free -h
|
||||
|
||||
# Température CPU
|
||||
vcgencmd measure_temp
|
||||
|
||||
# Services systemd
|
||||
sudo systemctl status docker
|
||||
sudo systemctl status cockpit
|
||||
|
||||
# Logs système
|
||||
journalctl -f
|
||||
```
|
||||
|
||||
## Réseau
|
||||
|
||||
```bash
|
||||
# IP des containers
|
||||
docker network inspect talloires_net | grep -A2 Name
|
||||
|
||||
# Test DNS Docker
|
||||
docker exec caddy nslookup authelia
|
||||
|
||||
# Connecter un container au réseau
|
||||
docker network connect talloires_net <container>
|
||||
```
|
||||
|
||||
## CrowdSec
|
||||
|
||||
```bash
|
||||
# Status
|
||||
docker exec crowdsec cscli metrics
|
||||
|
||||
# Décisions actives (bans)
|
||||
docker exec crowdsec cscli decisions list
|
||||
|
||||
# Ajouter un ban manuel
|
||||
docker exec crowdsec cscli decisions add --ip 1.2.3.4 --reason "test"
|
||||
```
|
||||
|
||||
## Certificats
|
||||
|
||||
```bash
|
||||
# Exporter le CA Caddy (pour clients)
|
||||
docker exec caddy cat /data/caddy/pki/authorities/local/root.crt > caddy-ca.crt
|
||||
|
||||
# Installer sur Mac
|
||||
security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain-db caddy-ca.crt
|
||||
```
|
||||
98
docs/vault/reference/ports.md
Normal file
98
docs/vault/reference/ports.md
Normal file
@@ -0,0 +1,98 @@
|
||||
# Ports utilises
|
||||
|
||||
## Ports exposes (accessibles via reseau)
|
||||
|
||||
| Port | Service | Protocol | Notes |
|
||||
|------|---------|----------|-------|
|
||||
| 80 | Caddy (redirect HTTPS) | TCP | Redirige vers 443 |
|
||||
| 443 | Caddy (reverse proxy) | TCP | Point entree principal |
|
||||
| 8096 | Jellyfin | TCP | Acces direct (optionnel) |
|
||||
| 3030 | Gitea HTTP | TCP | Mappe depuis 3000 interne |
|
||||
| 2222 | Gitea SSH | TCP | Mappe depuis 22 interne |
|
||||
| 8123 | Home Assistant | TCP | Mode host network |
|
||||
| 9090 | Cockpit | TCP | Admin systeme |
|
||||
| 1514 | Syslog-ng | TCP/UDP | Collecte syslog |
|
||||
| 51413 | Transmission P2P | TCP/UDP | BitTorrent |
|
||||
|
||||
## Ports internes Docker (talloires_net)
|
||||
|
||||
| Port | Service(s) | Notes |
|
||||
|------|------------|-------|
|
||||
| 3001 | Uptime Kuma | |
|
||||
| 3100 | Loki | Agregation logs |
|
||||
| 3456 | Vikunja | |
|
||||
| 5001 | Dockge | |
|
||||
| 5432 | PostgreSQL | Linkwarden-db, Outline-db |
|
||||
| 6379 | Redis | Outline-redis |
|
||||
| 8000 | MkDocs | |
|
||||
| 8010 | LanguageTool | |
|
||||
| 8080 | Shlink, Shlink-web | Go Links |
|
||||
| 9000 | Portainer | |
|
||||
| 9091 | Authelia, Transmission Web | |
|
||||
| 19999 | Netdata | |
|
||||
|
||||
## Go Links
|
||||
|
||||
Acces rapide a tous les services via `https://go/xxx`
|
||||
|
||||
| Go Link | Service |
|
||||
|---------|---------|
|
||||
| go/ha | Home Assistant |
|
||||
| go/jf | Jellyfin |
|
||||
| go/lw | Linkwarden |
|
||||
| go/lt | LanguageTool |
|
||||
| go/docs | Documentation |
|
||||
| go/git | Gitea |
|
||||
| go/auth | Authelia |
|
||||
| go/grafana | Grafana |
|
||||
| go/dockge | Dockge |
|
||||
| go/portainer | Portainer |
|
||||
| go/shlink | Admin Go Links |
|
||||
|
||||
[Liste complete et creation de nouveaux liens](../services/shlink.md)
|
||||
|
||||
## URLs par domaine
|
||||
|
||||
### Acces local (.talloires.local) - avec Authelia
|
||||
|
||||
| Service | URL | Authentification |
|
||||
|---------|-----|------------------|
|
||||
| Go Links | https://go | Shlink |
|
||||
| Homepage | https://talloires.local | Authelia |
|
||||
| Auth | https://auth.talloires.local | - |
|
||||
| Shlink Admin | https://shlink.talloires.local | Authelia |
|
||||
| Git | https://git.talloires.local | OIDC Authelia |
|
||||
| Jellyfin | https://jellyfin.talloires.local | Authelia |
|
||||
| Grafana | https://grafana.talloires.local | Header Auth |
|
||||
| Portainer | https://portainer.talloires.local | Authelia |
|
||||
| Dockge | https://dockge.talloires.local | Authelia |
|
||||
| Docs | https://docs.talloires.local | Authelia |
|
||||
| Vikunja | https://vikunja.talloires.local | Authelia |
|
||||
| Outline | https://outline.talloires.local | OIDC Authelia |
|
||||
| Linkwarden | https://linkwarden.talloires.local | Authelia |
|
||||
| LanguageTool | https://languagetool.talloires.local | Authelia |
|
||||
| Transmission | https://transmission.talloires.local | Authelia |
|
||||
| Netdata | https://netdata.talloires.local | Authelia |
|
||||
| Uptime Kuma | https://uptime.talloires.local | Authelia |
|
||||
| Cockpit | https://cockpit.talloires.local | Authelia |
|
||||
| Home Assistant | https://homeassistant.talloires.local | Authelia |
|
||||
|
||||
### Acces ZeroTier (.talloires.tailfd281f.ts.net) - sans Authelia
|
||||
|
||||
Ces URLs sont accessibles depuis exterieur via le reseau ZeroTier.
|
||||
|
||||
| Service | URL | Auth native |
|
||||
|---------|-----|-------------|
|
||||
| Go Links | https://go | Shlink |
|
||||
| Vikunja | https://vikunja.talloires.tailfd281f.ts.net | Vikunja login |
|
||||
| Outline | https://outline.talloires.tailfd281f.ts.net | OIDC Authelia |
|
||||
| Linkwarden | https://linkwarden.tailfd281f.ts.net | Linkwarden login |
|
||||
| LanguageTool | https://languagetool.talloires.tailfd281f.ts.net | Aucune (API) |
|
||||
|
||||
## Reseau ZeroTier
|
||||
|
||||
| Serveur | IP ZeroTier | Role |
|
||||
|---------|-------------|------|
|
||||
| Talloires | 10.144.221.22 | Serveur principal (Pi5) |
|
||||
| Annecy | 10.144.78.193 | NAS Synology (backup) |
|
||||
| Olympou | 10.144.46.46 | Mac de travail |
|
||||
56
docs/vault/reference/scripts.md
Normal file
56
docs/vault/reference/scripts.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# Scripts de maintenance
|
||||
|
||||
Scripts utilitaires pour la gestion de Talloires.
|
||||
|
||||
## update-containers.sh
|
||||
|
||||
Met à jour tous les containers Docker en parcourant les répertoires avec un fichier docker-compose.
|
||||
|
||||
**Emplacement** :
|
||||
|
||||
=== Pulling latest images ===
|
||||
|
||||
**Usage** :
|
||||
|
||||
|
||||
---
|
||||
|
||||
## transmission-toggle.sh
|
||||
|
||||
Active/désactive le container Transmission à la demande (économie de ressources).
|
||||
|
||||
**Emplacement** :
|
||||
|
||||
🔴 Transmission is STOPPED
|
||||
|
||||
**Usage** :
|
||||
|
||||
|
||||
---
|
||||
|
||||
## backup-to-annecy.sh
|
||||
|
||||
Sauvegarde les configs Docker vers le NAS Synology (Annecy).
|
||||
|
||||
**Emplacement** :
|
||||
|
||||
|
||||
|
||||
**Planification** : Cron à 3h00 quotidien
|
||||
|
||||
|
||||
**Vérifier les backups** :
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Watchtower (automatique)
|
||||
|
||||
Watchtower vérifie et met à jour automatiquement les containers à 4h00.
|
||||
|
||||
**Configuration** : Dans
|
||||
|
||||
|
||||
|
||||
**Logs** :
|
||||
|
||||
Reference in New Issue
Block a user