- 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
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
# Подключение к базе. Для локальной установки PostgreSQL порт 5432,
|
||
# для варианта с docker compose — 5433.
|
||
DATABASE_URL=postgres://dana:CHANGE_ME@localhost:5432/dana?sslmode=disable
|
||
|
||
APP_ADDR=:8080
|
||
MEDIA_DIR=./media
|
||
ALLOWED_ORIGINS=http://localhost:5173
|
||
DEBUG=true
|
||
|
||
# Готовый HTML сайта после npm run build в web.
|
||
WEB_DIR=./web/dist
|
||
# Один и тот же origin при сборке web и запуске Go. Для боевого сайта укажите HTTPS-домен.
|
||
SITE_URL=http://127.0.0.1:8080
|
||
|
||
# Актуальный HTML из БД на запросе; кеш обновляется при изменении данных.
|
||
# На сервере нужны Node.js, web/.ssr и установленные зависимости web.
|
||
SSR_RENDERER=./web/scripts/render-page.mjs
|
||
NODE_BINARY=node
|
||
# SSR_RENDERER=off — только снимки сборки, требующие ручной пересборки после правок.
|
||
|
||
# Битрикс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
|