Files
rip-help-system/COOLIFY.md
sabo d323bee712 Rename healthz label to Статус на услугата; document live URL.
API tab and OpenAPI summary now say status instead of health; docs point to rip.inex-project.net.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-27 10:54:51 +03:00

59 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Coolify — RIP Help System
## Build (Configuration → General)
| Поле | Стойност |
|------|----------|
| Build Pack | Dockerfile |
| Base Directory | `/` |
| Dockerfile Location | `/Dockerfile` |
Dockerfile се редактира **само в git**.
## Environment Variables
```
HELP_DB_CONN=host=... port=5432 dbname=rip_help_system user=... password=...
OUTPUT_DIR=/mnt/mssql/share/RIP/RIP_Help_Source/Output
HELP_REMOTE_ROOT=/mnt/mssql/share/RIP/RIP_Help_Source/Output
HOME_IMAGE=/app/Bairaci.png
ANTHROPIC_API_KEY=sk-ant-...
RESCAN_TOKEN=избери-тайна # опционално, но препоръчително
```
## Persistent Storage (read-write!)
| Host path | Container path |
|-----------|----------------|
| `/mnt/mssql/share/RIP/RIP_Help_Source/Output` | `/mnt/mssql/share/RIP/RIP_Help_Source/Output` |
Volume-ът трябва да е **writable** — rescan пише `.txt` + `images/`.
## API rescan
- `POST /api/rescan` — multipart `file` (+ `prefix`, `force`)
- `GET /api/rescan/{job_id}` — статус
- UI: Home таб → Rescan
Ако `RESCAN_TOKEN` е зададен:
```
localStorage.setItem('RESCAN_TOKEN', 'тайната')
```
в конзолата на браузъра (веднъж), или header `X-Rescan-Token`.
## Live URL
`https://rip.inex-project.net`
В Coolify → Domains / FQDN: `https://rip.inex-project.net` (старият `*.sslip.io` може да остане или да се махне).
## Проверки
1. `https://rip.inex-project.net/healthz` → `output_dir_ok: true`
2. `https://rip.inex-project.net/?prefix=RIP` — Home + Rescan
3. `https://rip.inex-project.net/api/search?q=...&prefix=RIP`
## Порт
`8000`