-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
137 lines (126 loc) · 5.37 KB
/
Copy path.env.example
File metadata and controls
137 lines (126 loc) · 5.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
NODE_ENV=development
API_HOST=0.0.0.0
API_PORT=4100
CLINIC_ENCRYPTION_KEY=dente_clinic_secret_key_32bytes!
WEB_ORIGIN=http://127.0.0.1:5173
# Database configuration
POSTGRES_USER=dental
POSTGRES_PASSWORD=dental
POSTGRES_DB=dental_crm
DATABASE_URL=postgres://dental:dental@127.0.0.1:5432/dental_crm
REDIS_URL=redis://127.0.0.1:6379
DOCUMENT_STORAGE_PATH=./storage/documents
ATTACHMENT_STORAGE_PATH=./storage/attachments
# Optional server-only env import. Values are read by the API process only.
# Use this instead of copying old project keys into the repo.
# DENTAL_SPEECH_ENV_FILE=C:\path\to\old-project\backend\.env
# DENTAL_EXTRA_ENV_FILES=C:\path\one\.env;C:\path\two\.env
# Speech-to-text gateway. Keys stay on the API server only.
# DENTAL_SPEECH_PROVIDER=groq
# DENTAL_SPEECH_FALLBACK_LIMIT=2
# DENTAL_SPEECH_KEY_RETRY_LIMIT=3
# DENTAL_SPEECH_PROVIDER_TIMEOUT_MS=45000
# DENTAL_SPEECH_RATE_LIMIT_COOLDOWN_MS=60000
# DENTAL_SPEECH_ERROR_COOLDOWN_MS=30000
# DENTAL_SPEECH_AUTH_COOLDOWN_MS=600000
# Prefer multi-key pools for STT rotation. Do not expose these to the client.
# GROQ_API_KEYS=key1,key2,key3
# GROQ_API_KEY_1=
# GROQ_API_KEY_2=
# GROQ_API_KEY=
# OPENAI_API_KEYS=
# OPENAI_API_KEY=
# DEEPGRAM_API_KEYS=
# DEEPGRAM_API_KEY=
# ASSEMBLYAI_API_KEYS=
# ASSEMBLYAI_API_KEY=
# CLOUDFLARE_ACCOUNT_ID=
# CLOUDFLARE_API_TOKENS=
# CLOUDFLARE_API_TOKEN=
# AZURE_SPEECH_KEY=
# AZURE_SPEECH_REGION=
# GOOGLE_API_KEYS=
# GOOGLE_API_KEY=
# GOOGLE_APPLICATION_CREDENTIALS=
# HUGGINGFACE_API_TOKENS=
# HUGGINGFACE_API_TOKEN=
# DENTAL_SPEECH_MAX_CHUNK_BYTES=6000000
# DENTAL_SPEECH_MIN_CHUNK_MS=10000
# DENTAL_SPEECH_MAX_CHUNK_MS=25000
# DENTAL_SPEECH_SILENCE_MS=900
# DENTAL_SPEECH_CHUNK_OVERLAP_MS=500
# DENTAL_SPEECH_DEDUPE_WINDOW_CHARS=600
# DENTAL_SPEECH_RMS_THRESHOLD=0.015
# Optional local workstation bridges. STT bridge URLs can receive explicit
# /api/speech/transcribe-chunk audio when DENTAL_SPEECH_PROVIDER=local|vosk.
# The API probes localhost/private LAN URLs by default. Public remote probing is
# blocked unless DENTAL_ALLOW_REMOTE_LOCAL_BRIDGES=true.
# DENTAL_LOCAL_WHISPER_URL=http://127.0.0.1:8091
# DENTAL_LOCAL_WHISPER_TRANSCRIBE_URL=http://127.0.0.1:8091/v1/audio/transcriptions
# DENTAL_LOCAL_WHISPER_MODEL=whisper.cpp
# DENTAL_LOCAL_WHISPER_API_KEY=
# WHISPER_CPP_URL=
# WHISPER_CPP_TRANSCRIBE_URL=
# LOCAL_WHISPER_URL=
# DENTAL_VOSK_URL=http://127.0.0.1:2700
# DENTAL_VOSK_TRANSCRIBE_URL=http://127.0.0.1:2700/transcribe
# DENTAL_VOSK_API_KEY=
# VOSK_SERVER_URL=
# LOCAL_VOSK_URL=
# DENTAL_LOCAL_STT_TIMEOUT_MS=25000
# DENTAL_DICOM_BRIDGE_URL=http://127.0.0.1:8043
# DICOM_LOCAL_BRIDGE_URL=
# DENTAL_DICOM_WORKER_URL=
# DENTAL_OCR_BRIDGE_URL=http://127.0.0.1:8899
# OCR_LOCAL_BRIDGE_URL=
# TESSERACT_BRIDGE_URL=
# DENTAL_OHIF_URL=http://127.0.0.1:3000
# OHIF_BASE_URL=
# DENTAL_ALLOW_REMOTE_LOCAL_BRIDGES=false
# Optional migration discovery hints. Discovery also scans bounded local roots,
# shortcuts, Windows processes/services, and Windows installed-app DisplayName
# values. These env hints are server-side only and must never contain patient data.
# DENTAL_MIGRATION_DISCOVERY_ROOTS=D:\OldMIS;\\server\legacy-export
# DENTAL_MIGRATION_WORKSTATION_SIGNALS=Romexis service;Firebird server
# DENTAL_MIGRATION_WORKSTATION_APPS=Sidexis XG;Cliniccards
# DENTAL_DADATA_API_KEY=
# Optional price-list/photo-OCR classification through Groq vision.
# Uses the same GROQ_API_KEYS/GROQ_API_KEY_1..N pool and server-side cooldowns.
# If disabled or unavailable, /api/pricelist/analyze falls back to the deterministic parser.
# GROQ_PRICELIST_MODEL=meta-llama/llama-4-scout-17b-16e-instruct
# Optional transcript cleanup after deterministic dental parser.
# Disabled by default; use only from the server.
# DENTAL_SPEECH_NEURAL_POLISH=off
# DENTAL_SPEECH_POLISH_PROVIDER=openai
# DENTAL_SPEECH_POLISH_BASE_URL=
# DENTAL_SPEECH_POLISH_API_KEY=
# DENTAL_SPEECH_POLISH_MODEL=
# DENTAL_SPEECH_POLISH_MAX_CHARS=8000
# DENTE Telegram bot integration. Keep values server-side only.
# Never paste real bot tokens into source code, docs, tests, or client bundles.
# DENTE_TELEGRAM_BOT_TOKEN=
# DENTE_TELEGRAM_BOT_USERNAME=dentecrm_bot
# Server-side admin guard for Telegram control-plane routes. Do not expose it to the web client.
# DENTE_TELEGRAM_ADMIN_SECRET=
# Local-only escape hatch for unprotected Telegram admin routes. Never set in staging/production.
# DENTE_TELEGRAM_ALLOW_UNGUARDED_CONTROL_PLANE=0
# Server-side guard for protected clinical/financial mutations.
# Falls back to DENTE_SETTINGS_ADMIN_SECRET or DENTE_TELEGRAM_ADMIN_SECRET when unset.
# DENTE_CLINICAL_ADMIN_SECRET=
# Local/prototype-only escape hatch. Never set in staging/production.
# DENTE_CLINICAL_ALLOW_UNGUARDED_MUTATIONS=0
# DENTE_CLINICAL_ALLOW_UNGUARDED_READS=0
# DENTE_TELEGRAM_WEBHOOK_SECRET=
# DENTE_TELEGRAM_WEBHOOK_BASE_URL=
# DENTE_TELEGRAM_PATIENT_PORTAL_BASE_URL=
# Optional bounded sendMessage timeout, 1000..60000 ms.
# DENTE_TELEGRAM_SEND_TIMEOUT_MS=12000
# Optional hash salt for audit-safe Telegram chat fingerprints.
# DENTE_TELEGRAM_CHAT_HASH_SALT=
# Required before outbound Telegram delivery: reversible server-side encryption
# for chat ids. Use a 32-byte base64 key, 64-char hex key, or passphrase.
# DENTE_TELEGRAM_CHAT_ENCRYPTION_KEY=
# Optional hash salt for one-time Telegram link codes. Rotate before production if exposed.
# DENTE_TELEGRAM_LINK_CODE_SALT=
# FNS export for KND 1151156 XML. Four-digit tax office code, server-side only.
# DENTE_FNS_TAX_OFFICE_CODE=