-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathconfig.env.template
More file actions
220 lines (170 loc) · 5.97 KB
/
config.env.template
File metadata and controls
220 lines (170 loc) · 5.97 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
# ========================================
# Friend-Lite Environment Configuration
# ========================================
# This file contains all environment variable definitions
# Add new variables here - they will be automatically included in all generated configs
# ========================================
# DEPLOYMENT SETTINGS
# ========================================
# Infrastructure namespaces
INFRASTRUCTURE_NAMESPACE = root
APPLICATION_NAMESPACE = friend-lite
# Deployment mode: docker-compose, kubernetes, or distributed
DEPLOYMENT_MODE = kubernetes
# Container registry (for kubernetes/skaffold)
CONTAINER_REGISTRY = anubis:32000
# ========================================
# NETWORK CONFIGURATION
# ========================================
# Primary domain/IP for all services
DOMAIN = 192-168-1-140.nip.io
DOMAIN_PREFIX = friend-lite
EXTERNAL_DOMAIN = omi-lite.qualitai.co.uk
# Service ports (Docker Compose mode)
BACKEND_PORT = 8000
WEBUI_PORT = 5173
SPEAKER_PORT = 8085
MONGODB_PORT = 27017
QDRANT_PORT = 6333
NGROK_PORT = 4040
# Kubernetes node ports (for LoadBalancer services)
BACKEND_NODEPORT = 30270
WEBUI_NODEPORT = 31011
SPEAKER_NODEPORT = 30285
# ========================================
# AUTHENTICATION & SECURITY
# ========================================
# JWT secret key - make this random and long
AUTH_SECRET_KEY = demo-secret-key-please-change-in-production-make-it-random-and-long
# Admin account
ADMIN_EMAIL = admin@example.com
ADMIN_PASSWORD = ******
# ========================================
# LLM CONFIGURATION
# ========================================
# LLM configuration is managed in config.yml (defaults.llm)
# Only API keys need to be set here
# OpenAI configuration
OPENAI_API_KEY = sk-xxxxx
# ========================================
# SPEECH-TO-TEXT CONFIGURATION
# ========================================
# Primary transcription provider: deepgram or parakeet
TRANSCRIPTION_PROVIDER = deepgram
# Deepgram configuration
DEEPGRAM_API_KEY = 90xxxxxx
# Parakeet ASR configuration (when TRANSCRIPTION_PROVIDER=parakeet)
PARAKEET_ASR_URL = http://host.docker.internal:8767
# ========================================
# DATABASE CONFIGURATION
# ========================================
# MongoDB URIs
MONGODB_URI = mongodb://mongo:$(MONGODB_PORT)
MONGODB_K8S_URI = mongodb://mongodb.$(INFRASTRUCTURE_NAMESPACE).svc.cluster.local:27017/friend
# Qdrant URLs
# (Connection details managed in config.yml)
QDRANT_K8S_URL = qdrant.$(INFRASTRUCTURE_NAMESPACE).svc.cluster.local
# Neo4j configuration (optional)
NEO4J_HOST = neo4j.root.local.svc.cluster.local
NEO4J_USER = neo4j
NEO4J_PASSWORD = neo4jpass
# ========================================
# MEMORY PROVIDER CONFIGURATION
# ========================================
# Memory Provider: friend_lite or openmemory_mcp
MEMORY_PROVIDER = openmemory_mcp
# OpenMemory MCP configuration (when MEMORY_PROVIDER=openmemory_mcp)
OPENMEMORY_MCP_URL = http://mem0-api.svc.cluster.local:8765
OPENMEMORY_CLIENT_NAME = friend_lite
OPENMEMORY_USER_ID = user
OPENMEMORY_TIMEOUT = 30
# ========================================
# SPEAKER RECOGNITION CONFIGURATION
# ========================================
# Hugging Face token for speaker recognition models
HF_TOKEN = hf_xxxxx
# Speaker recognition settings
SIMILARITY_THRESHOLD = 0.15
COMPUTE_MODE = gpu
# Node deployment configuration
SPEAKER_NODE = xxxxx
# React UI settings for speaker recognition
REACT_UI_HOST = 0.0.0.0
REACT_UI_PORT = 5173
REACT_UI_HTTPS = false
# ========================================
# COMPUTED VALUES
# ========================================
# Host configurations
BACKEND_HOST = $(DOMAIN_PREFIX).$(DOMAIN)
WEBUI_HOST = $(DOMAIN_PREFIX).$(DOMAIN)
SPEAKER_HOST = speaker.$(DOMAIN)
# Service URLs
BACKEND_URL = http://$(DOMAIN_PREFIX).$(DOMAIN):$(BACKEND_PORT)
WEBUI_URL = http://$(DOMAIN_PREFIX).$(DOMAIN):$(WEBUI_PORT)
SPEAKER_SERVICE_URL = http://$(SPEAKER_HOST):$(SPEAKER_PORT)
# CORS and Vite configuration
CORS_ORIGINS = http://$(DOMAIN):$(WEBUI_PORT),http://$(DOMAIN):3000,http://localhost:$(WEBUI_PORT),http://localhost:3000
VITE_ALLOWED_HOSTS = localhost 127.0.0.1 $(DOMAIN_PREFIX).$(DOMAIN) $(EXTERNAL_DOMAIN) $(SPEAKER_HOST)
# Model configuration
# (Managed in config.yml)
# ========================================
# OPTIONAL SERVICES
# ========================================
# Groq API (alternative LLM provider)
GROQ_API_KEY =
# Langfuse telemetry
LANGFUSE_PUBLIC_KEY =
LANGFUSE_SECRET_KEY =
LANGFUSE_HOST = http://x.x.x.x:3002
LANGFUSE_ENABLE_TELEMETRY = false
# Ngrok for external access
NGROK_AUTHTOKEN =
# Audio processing settings
# (Managed in config.yml or hardcoded in constants)
NEW_CONVERSATION_TIMEOUT_MINUTES = 1.5
AUDIO_CROPPING_ENABLED = true
MIN_SPEECH_SEGMENT_DURATION = 1.0
CROPPING_CONTEXT_PADDING = 0.1
# ========================================
# DEVELOPMENT & DEBUG SETTINGS
# ========================================
# Environment
ENVIRONMENT = dev
NODE_ENV = production
# Debug settings
DEBUG_DIR = ./data/debug_dir
MEM0_TELEMETRY = false
# Storage settings
PERSISTENCE_SIZE = 10Gi
STORAGE_CLASS = openebs-hostpath
# ========================================
# KUBERNETES-SPECIFIC SETTINGS
# ========================================
# Image pull policy
IMAGE_PULL_POLICY = Always
# Resource limits
BACKEND_CPU_LIMIT = 1000m
BACKEND_MEMORY_LIMIT = 2Gi
BACKEND_CPU_REQUEST = 200m
BACKEND_MEMORY_REQUEST = 1Gi
WEBUI_CPU_LIMIT = 500m
WEBUI_MEMORY_LIMIT = 512Mi
WEBUI_CPU_REQUEST = 100m
WEBUI_MEMORY_REQUEST = 128Mi
SPEAKER_CPU_LIMIT = 2000m
SPEAKER_MEMORY_LIMIT = 4Gi
SPEAKER_CPU_REQUEST = 500m
SPEAKER_MEMORY_REQUEST = 2Gi
# ========================================
# ADD NEW ENVIRONMENT VARIABLES HERE
# ========================================
#
# To add a new environment variable:
# 1. Add it to this file (either as a default value with ?= or computed with =)
# 2. That's it! It will be automatically available in all generated configs
#
# Examples:
# NEW_SERVICE_URL = http://$(DOMAIN):$(NEW_SERVICE_PORT)
# NEW_SERVICE_PORT ?= 9000
# NEW_FEATURE_ENABLED ?= true