44 lines
1.4 KiB
Markdown
44 lines
1.4 KiB
Markdown
# Traefik + Cloudflare — Ligbox Ops público
|
|
|
|
**Data:** 2026-06-08
|
|
**Traefik:** CT114 (`10.10.10.114`)
|
|
**Backend:** VM122 `ligbox-ops` (`10.10.10.122`)
|
|
|
|
## Domínios
|
|
|
|
| Domínio | Serviço | Backend |
|
|
|---------|---------|---------|
|
|
| `ops.ligbox.com.br` | UI Ops (portal principal) | `http://10.10.10.122:8091` |
|
|
| `desk.ligbox.com.br` | UI Support Desk | `http://10.10.10.122:8091` |
|
|
| `api.ops.ligbox.com.br` | API REST | `http://10.10.10.122:8080` |
|
|
|
|
## Cloudflare DNS (zona ligbox.com.br)
|
|
|
|
| Registo | Tipo | Valor | Proxied |
|
|
|---------|------|-------|---------|
|
|
| `ops` | A | `95.216.14.146` | false |
|
|
| `desk` | A | `95.216.14.146` | false |
|
|
| `api.ops` | A | `95.216.14.146` | false |
|
|
|
|
## Traefik routers (CT114 `/root/traefik/dynamic.yml`)
|
|
|
|
- `ligbox-ops-Router` → `ops.ligbox.com.br`
|
|
- `ligbox-ops-desk-Router` → `desk.ligbox.com.br`
|
|
- `ligbox-ops-api-Router` → `api.ops.ligbox.com.br`
|
|
- `ligbox-ops-http-Router` → redirect HTTP → HTTPS
|
|
|
|
TLS: Let's Encrypt (`certResolver: letsencrypt`)
|
|
|
|
## Verificação
|
|
|
|
```bash
|
|
curl -sf https://ops.ligbox.com.br/api/health
|
|
curl -sf https://desk.ligbox.com.br/api/v1/desk/tickets
|
|
curl -sf https://api.ops.ligbox.com.br/health
|
|
```
|
|
|
|
## Notas
|
|
|
|
- UI (`ops` / `desk`) usa nginx no frontend Docker que faz proxy `/api/` → container `api:8080`
|
|
- Webhook VM112 continua em LAN (`http://10.10.10.122:8080`) — não exposto publicamente
|
|
- Backup Traefik: `/root/traefik/dynamic.yml.bak-ops-desk` no CT114
|