XikaandPaperclip d8daca15bd feat(backend): add FastAPI, worker, web nginx — full platform (BIT-26121)
- api/: FastAPI app with MySQL (accounts, forwarding_rules, messages)
  - GET/POST/PUT/DELETE /accounts + /accounts/{id}/test
  - GET /messages + /messages/{id}/retry
  - GET /stats
  - POST /connection/test
  - Auto-runs migrations/init.sql on startup
- worker/: Python IMAP poller + BizDocs upload (schedule every 5 min)
- web/: multi-stage Dockerfile — builds admin-ui via Node, serves via nginx
  - nginx proxies /api/ → api:8000, SPA fallback for React Router
- docker-compose.yml: updated web build context + mysql init.sql mount

Co-Authored-By: Paperclip <[email protected]>
2026-06-30 23:04:54 +00:00

BizDocs Forwarder

IMAP-to-BizDocs multi-account forwarder platform.

Overview

Automates document forwarding from IMAP email accounts to the BizDocs platform. Supports multiple accounts, with a background worker, REST API, and admin UI.

Architecture

Component Description
Worker Background process: polls IMAP, extracts attachments, forwards to BizDocs API
API REST endpoints for account management, forwarding rules, and job status
Admin UI Web interface for configuration and monitoring
DB MySQL — account config, forwarding rules, job history

Stack

  • Python (worker + API)
  • MySQL
  • Docker / Proxmox LXC (deploy target)

Getting Started

cp .env.example .env
# Edit .env with your IMAP credentials and BizDocs API key
docker compose up -d
S
Description
BizDocs Forwarder — IMAP-to-BizDocs multi-account forwarder platform (MySQL, API, worker, admin UI)
Readme
670 KiB
0 Stars 32 Watchers 0 Forks
Languages
Python 80.9%
TypeScript 16.7%
PHP 0.9%
Shell 0.7%
Dockerfile 0.4%
Other 0.2%