Доки: config/init.conf не в git
This commit is contained in:
@@ -74,7 +74,7 @@ ls -ln /var/lib/docker/volumes/lampac_database/_data/Sisi.sql # uid/gid 1000
|
||||
|
||||
| Файл | В git? | Назначение |
|
||||
|---|---|---|
|
||||
| `config/init.conf` | ✅ | Шаблон конфига, секреты **пустые**. Именно его редактируете для обычных настроек (`listen`, `SkipModules`, `initPlugins`, модули). |
|
||||
| `config/init.conf` | ❌ .gitignore | Шаблон конфига, живёт только локально (не коммитится, в т.ч. в `Home/lampac`). Именно его редактируете для обычных настроек (`listen`, `SkipModules`, `initPlugins`, модули). |
|
||||
| `config/secrets.env` | ❌ .gitignore | Токены ботов и `mutations_api_secret`. `TELEGRAM_NOTIFY_BOT_TOKEN`, `TELEGRAM_AUTH_BOT_TOKEN`, `TELEGRAM_AUTH_MUTATIONS_SECRET`. |
|
||||
| `config/init.custom.conf` | ❌ .gitignore | Боевой конфиг, который монтируется в контейнер. Собирается из шаблона + `secrets.env` скриптом. |
|
||||
| `scripts/config-secrets.py` | ✅ | Собирает/разбирает боевой конфиг: `apply`, `export`, `check`, `status`. |
|
||||
@@ -93,9 +93,8 @@ docker compose up -d # рекреация из-за но
|
||||
# 2) python3 scripts/config-secrets.py apply -> обновляет init.custom.conf
|
||||
# 3) docker compose restart lampac
|
||||
|
||||
# перед коммитом:
|
||||
python3 scripts/config-secrets.py export # секреты -> пустые в шаблоне
|
||||
git add config/init.conf
|
||||
# перед коммитом (init.conf не коммитится — он в .gitignore):
|
||||
git add -A
|
||||
git commit -m "..."
|
||||
```
|
||||
|
||||
@@ -109,7 +108,7 @@ git commit -m "..."
|
||||
|---|---|
|
||||
| `docker-compose.yaml` | Основной сервис (образ `ghcr.io/lampac-nextgen/lampac:1.68.1`) |
|
||||
| `docker-compose.override.yml` | Серверный override (Proxmox: том DLNA -> `/mnt/torrents`), в .gitignore |
|
||||
| `config/init.conf` | Шаблон конфига (JSON, в git, секреты **пустые**) |
|
||||
| `config/init.conf` | Шаблон конфига (JSON, в .gitignore — только локально) |
|
||||
| `config/init.custom.conf` | Боевой конфиг (в .gitignore, монтируется в `/lampac/init.conf`) |
|
||||
| `config/secrets.env` | Токены ботов и `mutations_api_secret` (в .gitignore) |
|
||||
| `config/passwd` | Пароль root для `/adminpanel` и `/weblog` (в .gitignore) |
|
||||
|
||||
Reference in New Issue
Block a user