feat: initial infra repo

- docker-services: 14 generic compose templates (portainer, npm, vaultwarden, gitea, jotty, nextcloud-aio, rustdesk, audiobookshelf, calibre-web, plex, erugo, jswiki, speedtest, watchtower)
- install-scripts: bash scripts for Ubuntu server bootstrap, docker, portainer, npm, backup, restore
- ansible: 4 playbooks (bootstrap, deploy-services, update-services, security-hardening) + roles skeleton
- hermes-install: Hermes CLI setup on macOS
- macos-setup: Brewfile + osx-defaults + fish-config
- home-nas-tools: metadata index for NAS projects (no binaries)
- docs: architecture, security, contributing
- README, LICENSE (MIT), .gitignore
This commit is contained in:
2026-08-01 16:25:58 +02:00
commit 444191d16d
73 changed files with 4032 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# Gitea proměnné prostředí
USER_UID=1000
USER_GID=1000
TZ=Europe/Prague
# Po prvním adminovi nastav na false
GITEA__service__DISABLE_REGISTRATION=false
GITEA__service__REQUIRE_SIGNIN_VIEW=false
# HTTPS terminuje NPM, takže false
GITEA__session__COOKIE_SECURE=false
+70
View File
@@ -0,0 +1,70 @@
# Gitea self-hosted Git
> Lehký Git server (alternativa k GitLabu). Web UI, API, SSH.
## 📋 Přehled
- **Image:** `docker.gitea.com/gitea:1.27.1`
- **Porty:** `3000` (web), `222` (SSH)
- **User:** `1000:1000`
- **Network:** `bridge`
## 🚀 Instalace
```bash
cp .env.example .env
nano .env
docker compose up -d
```
Po startu otevři `http://<server>:3000/` a dokonči install wizard:
1. **Database:** SQLite3 (default)
2. **Site Title:** libovolný
3. **Admin Username:** `admin` (nebo `mates`)
4. **Admin Password:** silné heslo
5. **Admin Email:** tvůj email
6. Ostatní default
7. **Install Gitea**
## 🌐 Přístup
- **Web:** `http://<server>:3000` (za HTTPS terminuj v NPM)
- **SSH git push:** `ssh://git@<server>:222/<user>/<repo>.git`
- **API:** `http://<server>:3000/api/v1/`
## 🔐 Bezpečnost
- **Změň admin heslo** hned po instalaci
- **DISABLE_REGISTRATION=false** po registraci prvního admina vypni
- **HTTPS** terminuj v NPM a přesměruj HTTP→HTTPS
- **2FA** aktivuj pro admin účet
## 🔑 API Token
Vytvoření tokenu pro skripty:
1. User Settings → Applications
2. Název: `<script-name>`
3. Scopes: `read:user`, `write:user`, `read:repository`, `write:repository`
4. **Token ulož do keychainu**, ne do chatu
## 🔄 Aktualizace
```bash
docker compose pull
docker compose up -d
# DB migrace probíhá automaticky
```
## 📁 Volumes
| Mount | Účel |
|---|---|
| `./gitea:/data` | Repozitáře, DB, konfigurace, hooks |
## 📚 Dokumentace
- [Gitea Docker install](https://docs.gitea.com/installation/install-with-docker/)
- [Gitea API](https://docs.gitea.com/api/)
+39
View File
@@ -0,0 +1,39 @@
# Gitea self-hosted Git server
services:
server:
image: docker.gitea.com/gitea:1.27.1
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__webhook__SKIP_TLS_VERIFY=false
- GITEA__service__DISABLE_REGISTRATION=false
- GITEA__service__REQUIRE_SIGNIN_VIEW=false
- GITEA__session__COOKIE_SECURE=false
restart: unless-stopped
networks:
- gitea_net
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
networks:
gitea_net:
name: gitea_default
driver: bridge