Commit 61098e95 authored by Vitaly Lipatov's avatar Vitaly Lipatov

CLAUDE.md: add IPFS section for dhash.ru

- Server access (ssh dhash, ssh ipfs@dhash) - Remote API access: ipfs --api=/ip4/91.232.225.49/tcp/5001 - Diagnostic commands - Known issues: FD exhaustion, daily restart timer 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: 's avatarClaude Opus 4.5 <noreply@anthropic.com>
parent 9d41eaa8
......@@ -264,3 +264,32 @@ DISPLAY=:0.0 remote-viewer ~/tmp/claude/vm.vv'
- Удалять VM когда больше не нужна
- Не использовать гибернацию (может зависнуть навсегда)
- Использовать снапшоты для возможности отката
## IPFS (dhash.ru)
### Сервер
- Хост: dhash (ssh dhash, ssh ipfs@dhash для команд ipfs)
- Gateway: https://dhash.ru/ipfs/
- API: /ip4/91.232.225.49/tcp/5001
- Сервис: `serv ipfsd start/stop/status`
### Удалённый доступ к IPFS
```bash
# Скачать файл через API (без локальной ноды)
ipfs --api=/ip4/91.232.225.49/tcp/5001 get QmHASH -o output
# Через HTTP gateway
curl https://dhash.ru/ipfs/QmHASH -o output
```
### Диагностика
```bash
ssh ipfs@dhash "ipfs swarm peers | wc -l" # количество пиров
ssh ipfs@dhash "ipfs swarm resources | head" # лимиты ресурсов
ssh ipfs@dhash "ipfs stats bw" # статистика bandwidth
```
### Известные проблемы
- FD exhaustion: ошибка "unable to fully refresh routing table" — увеличить MaxFileDescriptors
- Настроен ежедневный рестарт в 04:00 (ipfsd-restart.timer)
- Bottleneck в IPFS gateway, не в сети (localhost медленнее remote)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment