arc/hesabixAPI
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Babak Alizadeh c3d23c29b5 security: contain Telegram bot token leak and harden EU proxy
Remove the production bot token from example configs, disable public
proxy test endpoints, restrict proxied Bot API methods, and mask
notification secrets in the admin API after the @Hesabix_bot compromise.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-23 09:24:42 +00:00
..
.github/workflows change file permissions 2026-04-14 19:34:55 +03:30
.migrate_venv bug fix in local deployment 2026-04-25 02:31:13 +03:30
adapters security: contain Telegram bot token leak and harden EU proxy 2026-09-23 09:24:42 +00:00
app security: contain Telegram bot token leak and harden EU proxy 2026-09-23 09:24:42 +00:00
assets more bug fix in permission control and reports 2026-05-07 22:21:45 +03:30
build/lib some bug fixes 2026-05-18 16:50:15 +00:00
deployment/systemd change py mirrors 2026-08-17 13:16:25 +00:00
docs some more bug fix in telephony connector 2026-08-06 07:12:10 +00:00
examples change file permissions 2026-04-14 19:34:55 +03:30
hesabix_api.egg-info add localization string about lunch ai widget 2026-09-22 19:25:09 +00:00
locales bug fix in fiscal roolback conflit with plugins activators 2026-09-22 08:34:32 +00:00
migrations almost finish dertribition plugin update 2026-09-07 17:33:35 +00:00
nginx-conf.d some more bug fix in telephony connector 2026-08-06 07:12:10 +00:00
nginx-snippets some more bug fix in telephony connector 2026-08-06 07:12:10 +00:00
scripts some more bug fixes that users reported 2026-09-15 08:53:44 +00:00
templates bug fix in invoices 2026-09-03 00:02:08 +00:00
tests fix: harden quick customer resolve auth and candidate loading 2026-09-22 19:21:54 +00:00
vendor/voice_wheels progress in ai 2026-05-28 14:18:39 +00:00
.gitignore change file permissions 2026-04-14 19:34:55 +03:30
.pre-commit-config.yaml change file permissions 2026-04-14 19:34:55 +03:30
=0.9.14 change file permissions 2026-04-14 19:34:55 +03:30
=1.15.0 change file permissions 2026-04-14 19:34:55 +03:30
=3.1.0 change file permissions 2026-04-14 19:34:55 +03:30
=5.9.0 change file permissions 2026-04-14 19:34:55 +03:30
alembic.ini change file permissions 2026-04-14 19:34:55 +03:30
alembic_build.ini change file permissions 2026-04-14 19:34:55 +03:30
analyze_business_endpoints.py change file permissions 2026-04-14 19:34:55 +03:30
analyze_migrations.py change file permissions 2026-04-14 19:34:55 +03:30
api.hesabix.ir.conf change file permissions 2026-04-14 19:34:55 +03:30
check_notification_issue.py change file permissions 2026-04-14 19:34:55 +03:30
check_ticket_notification.py change file permissions 2026-04-14 19:34:55 +03:30
debug_telegram_notification.py change file permissions 2026-04-14 19:34:55 +03:30
docker-compose.yml some security bug fix 2026-06-19 22:03:43 +00:00
Dockerfile change file permissions 2026-04-14 19:34:55 +03:30
env.example BUG fix in secrets keys keep 2026-07-12 22:12:18 +00:00
f.mirror.hesabix.ir.conf add shabake tamin network 2026-05-20 15:30:21 +00:00
fix_null_strings.sql change file permissions 2026-04-14 19:34:55 +03:30
gradle.mirror.hesabix.ir.conf add shabake tamin network 2026-05-20 15:30:21 +00:00
hesabix.db change file permissions 2026-04-14 19:34:55 +03:30
maven.mirror.hesabix.ir.conf add shabake tamin network 2026-05-20 15:30:21 +00:00
migration_checkpoint.json change file permissions 2026-04-14 19:34:55 +03:30
migrations_backup_20251206_031601.tar.gz change file permissions 2026-04-14 19:34:55 +03:30
mysql.conf change file permissions 2026-04-14 19:34:55 +03:30
p-mirror-pypi.conf add shabake tamin network 2026-05-20 15:30:21 +00:00
pyproject.toml bug fix in tty pyton 3.13 with unsafe libs 2026-07-12 22:03:23 +00:00
pytest.ini bug fix in ai 2026-07-16 07:39:13 +00:00
README.md some progress in crm chat 2026-05-02 03:06:55 +00:00
rq_worker.py add calendar and note taking 2026-04-15 17:33:30 +00:00
run_migrations.py change file permissions 2026-04-14 19:34:55 +03:30
run_notification_worker.sh big progress 2025-12-09 02:51:12 +00:00
test_create_ticket.sh change file permissions 2026-04-14 19:34:55 +03:30
test_create_ticket_via_api.sh big progress 2025-12-09 02:51:12 +00:00
test_notification_manual.md change file permissions 2026-04-14 19:34:55 +03:30
test_notification_simple.py change file permissions 2026-04-14 19:34:55 +03:30
test_notify_operators.py change file permissions 2026-04-14 19:34:55 +03:30
test_ticket_notification.py change file permissions 2026-04-14 19:34:55 +03:30
test_ticket_with_notification.py change file permissions 2026-04-14 19:34:55 +03:30

Hesabix API

Monolithic modular backend (DDD-lite) using FastAPI + SQLAlchemy + MySQL.

Quickstart (Dev)

  1. Create and fill .env from .env.example.
  2. Install dependencies:
pip install -e .[dev]
  1. Run app:
uvicorn app.main:app --reload

Health endpoint: GET /api/v1/health.

Configuration

  • See app/core/settings.py and .env.example.
  • چت CRM و WebSocket: اگر Redis برای API خاموش است، برای رویدادهای زندهٔ چت باید تک worker یا sticky وب‌سوکت باشد؛ جزییات: docs/CRM_CHAT_WEBSOCKET_DEPLOYMENT.md.