dana-medical-site/deploy.env.example
Abdulkadyr Karagishiev 121f286016 feat(crm): integrate website leads and online booking with new CRM and 1C
- Add internal/crm client with CanonicalJSON and HMAC-SHA256 signing for POST /api/public/leads
- Add database migration 0026_crm_deals.sql with crm_deal_id and partial indexes
- Add async lead intake dispatch to new CRM in handlers_leads.go
- Support dual-mode booking confirmation (CRM_MODE=both/crm_only/bitrix_only) in booking_confirm.go
- Add LinkCRM endpoint to bridge_1c.py and onec.Client
- Update config and env examples with CRM_API_URL, CRM_LEAD_INTAKE_SECRET, CRM_MODE
2026-10-16 18:01:49 +03:00

33 lines
1.3 KiB
Plaintext
Raw Permalink 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.

# Скопировать в .env только на VPS и заменить значения.
POSTGRES_PASSWORD=CHANGE_ME_LONG_RANDOM_VALUE
ADMIN_EMAIL=admin@example.ru
ADMIN_PASSWORD=CHANGE_ME_LONG_RANDOM_VALUE
# Канонический адрес нового сайта. До переключения DNS приложение можно
# проверять через SSH-туннель, не публикуя его в Caddy.
SITE_URL=https://danamedical.ru
DANA_PORT=8082
ALLOWED_ORIGINS=https://danamedical.ru,https://www.danamedical.ru
# Уведомления о новых заявках. Если SMTP_HOST пуст, заявки сохраняются в
# админке, но письма не отправляются.
SMTP_HOST=
SMTP_PORT=465
SMTP_USER=
SMTP_PASSWORD=
NOTIFY_FROM=
NOTIFY_TO=
# Виртуальная АТС МегаФон. Без ключа раздел работает с уже загруженными
# данными, но автоматическая синхронизация отключена.
MEGAFON_API_URL=vats970345.megapbx.ru
MEGAFON_API_KEY=
# Битрикс24 (существующая CRM)
BITRIX_WEBHOOK_URL=
# Новая CRM (dana-medccrm)
CRM_API_URL=https://stagingcrm.dana-medical.ru
CRM_LEAD_INTAKE_SECRET=157cd822ba7e45636a3af9479024a8847410a250e9bc1cc0268a127c8b3c3282
CRM_MODE=both # both | crm_only | bitrix_only