Files
docu/shared/git-und-repos.md
T
root 16a29d00cc WireGuard-Secrets ins Repo (privates docu).
OPNsense- und VM101-Client-Configs plus Horus-Peer-Blöcke unter
shared/horus-opnsense-wireguard/.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 11:53:59 +02:00

86 lines
2.1 KiB
Markdown

# Git & Repositories
Gitea: **https://git.jeanavril.com** · User: **jean**
## Repositories
| Repo | URL | Clone-Pfad auf Hosts |
|------|-----|----------------------|
| docu | https://git.jeanavril.com/jean/docu.git | `/root/docu` |
| server-power | https://git.jeanavril.com/jean/server-power.git | `/root/code/pve-power-mqtt` |
## Authentifizierung (HTTPS)
SSH zu Gitea ist über Reverse-Proxy **nicht** eingerichtet → **HTTPS + Token**.
### Token (Gitea → Settings → Applications)
User `jean`, Token für Automation auf den Proxmox-Hosts.
Gespeichert in: **`/root/.git-credentials-jeanavril`**
```
https://jean:<TOKEN>@git.jeanavril.com
```
(chmod 600)
### Git-Credential pro Repo (lokal)
In jedem Repo unter `.git/config`:
```
credential.helper=store --file /root/.git-credentials-jeanavril
```
Setzen:
```bash
cd /root/docu # oder /root/code/pve-power-mqtt
git config --local credential.helper 'store --file /root/.git-credentials-jeanavril'
```
## Erstes Setup auf neuem Host
```bash
# Doku
git clone https://git.jeanavril.com/jean/docu.git /root/docu
cd /root/docu
git config --local credential.helper 'store --file /root/.git-credentials-jeanavril'
# Token-Datei anlegen (Inhalt von anderem Host kopieren)
# Power-Agent
git clone https://git.jeanavril.com/jean/server-power.git /root/code/pve-power-mqtt
cd /root/code/pve-power-mqtt
git config --local credential.helper 'store --file /root/.git-credentials-jeanavril'
```
## Go installiert
Pfad: `/usr/local/go/bin/go` — in `~/.bashrc`:
```bash
export PATH="/usr/local/go/bin:$PATH"
```
## Weitere Pfade in `docu`
| Pfad | Inhalt |
|------|--------|
| [shared/ssh/](ssh/README.md) | Gemeinsame `authorized_keys`-Fragmente + Deploy-Skript |
| [shared/horus-opnsense-wireguard/](horus-opnsense-wireguard/README.md) | WireGuard OPNsense ↔ Horus (Configs inkl. Keys) |
| `pve1/ansible/` | Fish-Setup für VM 101 |
| `pve2/ansible/` | LXC Disk-Maintenance (Cron auf pve2) |
Symlinks auf den Hosts: `ln -sfn /root/docu/pve{1,2}/ansible /root/ansible`
## Workflow
```bash
cd /root/docu && git pull
# editieren
git add -A
git commit -m "Kurze Beschreibung"
git push
```