1sonhador
df016a1e34
fix(deploy): use repo deploy script + expose git_sha in health
...
Webhook now runs /opt/forwarder/deploy/deploy-pull.sh from git (not stale
image copy). Rolling rebuild api then web; health reports FORWARDER_GIT_SHA.
2026-07-01 01:40:43 +01:00
1sonhador
eb4a95dfc2
fix(admin-ui): add destination_email field to account form
...
The API requires destination_email for BizDocs SMTP forwarding; the UI
still sent legacy bizdocs_api_key fields. Default [email protected] .
2026-07-01 01:29:44 +01:00
1sonhador
f6b276511a
fix(connection): fail-fast IMAP/SMTP tests; add Gitea webhook autodeploy
...
Connection tests use 5s timeouts and run IMAP/SMTP in parallel so the UI
gets a clear error instead of nginx 504. Add deploy-hook service (:9090) and
deploy-pull.sh for push-to-main deploys on CT 243.
2026-07-01 01:09:53 +01:00
Xika and Paperclip
d476cb0204
feat(admin-ui): add login page and HTTP Basic auth
...
- AuthProvider + useAuth hook (sessionStorage, base64 creds)
- Login.tsx validates credentials against /api/stats before accepting
- api.ts injects Authorization: Basic header on all requests
- App.tsx gates all routes behind login, redirects unknown paths
- Layout.tsx adds logout button
- .gitignore: allow admin-ui/src/lib/ (was blocked by root lib/ rule)
Co-Authored-By: Paperclip <[email protected] >
2026-06-30 23:50:01 +00:00
Xika and Paperclip
6e6f1a44e4
fix(nginx): use hostname variable in proxy_pass to fix DNS + path rewriting
...
Using $variable:port with no path appended forces DNS re-resolution
while nginx still forwards the full original request URI unchanged.
Previous attempt ($upstream/api/) was dropping the request path.
Co-Authored-By: Paperclip <[email protected] >
2026-06-30 23:46:47 +00:00
Xika and Paperclip
3436611714
fix(api+nginx): fix 502 proxy, add /stats + /connection/test, align UI schema
...
- nginx: add resolver 127.0.0.11 + $upstream var to fix Docker DNS caching
- Add GET /api/stats (accounts/messages counts, last_sync_at)
- Add POST /api/connection/test (IMAP+SMTP inline test)
- AccountResponse: computed active/email aliases, bizdocs stub fields
- MessageResponse: account_name, message_uid, sender, received_at, forwarded_at
- AccountCreate/Update: accept extra UI fields without validation error
Co-Authored-By: Paperclip <[email protected] >
2026-06-30 23:43:11 +00:00
1sonhador
d1e4725ac3
Add Python API, worker, MySQL migrations and wire admin-ui in Docker.
...
Backend FastAPI + APScheduler worker with Alembic schema; admin-ui served
via nginx with /api proxy. Unifies Paperclip UI scaffold with local platform code.
2026-07-01 00:04:57 +01:00
Xika and Paperclip
acbb1d9be4
feat(admin-ui): add Vite+React admin UI (BIT-26126)
...
Dashboard, Contas, Emails, Teste de Ligação pages built with
React Router, Tailwind CSS, and lucide-react icons. Typed API
client covers accounts CRUD, messages list/retry, stats, and
connection testing (IMAP/SMTP/BizDocs). Clean TypeScript build.
Co-Authored-By: Paperclip <[email protected] >
2026-06-30 22:54:31 +00:00