Add Claude Code setup to installation guide
@@ -130,7 +130,36 @@ Add:
|
|||||||
30 3 * * * rsync -a --delete /mnt/ssd/dbs/ /mnt/backups/dbs/ >> /mnt/backups/dbs/cron.log 2>&1 && touch /mnt/backups/dbs/.last_sync
|
30 3 * * * rsync -a --delete /mnt/ssd/dbs/ /mnt/backups/dbs/ >> /mnt/backups/dbs/cron.log 2>&1 && touch /mnt/backups/dbs/.last_sync
|
||||||
```
|
```
|
||||||
|
|
||||||
## 7. Services
|
## 7. Claude Code
|
||||||
|
|
||||||
|
Install [Claude Code](https://claude.ai/code), then configure:
|
||||||
|
|
||||||
|
**`~/.claude/settings.json`** — env vars and preferences:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"GITEA_TOKEN": "<gitea-api-token>",
|
||||||
|
"ZABBIX_TOKEN": "<zabbix-api-token>",
|
||||||
|
"HTTP_PROXY": "http://127.0.0.1:56928",
|
||||||
|
"HTTPS_PROXY": "http://127.0.0.1:56928",
|
||||||
|
"ALL_PROXY": "http://127.0.0.1:56928",
|
||||||
|
"NO_PROXY": "localhost,127.0.0.1,172.17.0.0/16",
|
||||||
|
"TELEGRAM_BOT_TOKEN": "<telegram-bot-token>",
|
||||||
|
"TELEGRAM_CHAT_ID": "<telegram-chat-id>",
|
||||||
|
"HA_TOKEN": "<home-assistant-long-lived-token>"
|
||||||
|
},
|
||||||
|
"effortLevel": "low"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**`~/.claude/CLAUDE.md`** — global instructions (Gitea wiki integration, Zabbix API, HA API). Copy from existing Agap setup.
|
||||||
|
|
||||||
|
**`~/agap_git/CLAUDE.md`** — project-level instructions (services, storage paths, common commands). Already in the repo.
|
||||||
|
|
||||||
|
> Tokens must be regenerated on a fresh install — they are not stored in the repo.
|
||||||
|
|
||||||
|
## 8. Services
|
||||||
|
|
||||||
Start all Docker services:
|
Start all Docker services:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user