-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.env.template
170 lines (132 loc) · 5.76 KB
/
.env.template
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
# ------------------------------------------------------------------------------
# Django / KitchenAI Environment Variables
# ------------------------------------------------------------------------------
# General Django settings
# ------------------------------------------------------------------------------
# Enable / disable debug mode (development = True, production = False)
DEBUG=False
# Whether KitchenAI is running locally and should not use background tasks
KITCHENAI_LOCAL=False
OPENAI_API_KEY=
# Allowed hosts (comma-separated)
# e.g., ALLOWED_HOSTS=localhost,127.0.0.1,example.com
ALLOWED_HOSTS=localhost
# Secret key for Django; required in production
# Generate a secure random string in production!
SECRET_KEY=django-insecure-change_me
#NATS Settings
NATS_ADMIN_PASS=dev_admin_pass
SYSTEM_PASSWORD=dev_system_password
ADMIN_PASSWORD=dev_kitchenai_admin
USER1_PASSWORD=dev_user1_password
# ------------------------------------------------------------------------------
# Database Settings
# ------------------------------------------------------------------------------
# Full database URL (e.g., Postgres, MySQL, or SQLite)
# Examples:
# Postgres: "postgres://USER:PASSWORD@HOST:PORT/NAME"
# SQLite: "sqlite:///relative/path/to/db.sqlite3"
# SQLite default: sqlite:///PROJECT_PATH/.kitchenai/db.sqlite3
DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
# Maximum connection age (in seconds) for persistent DB connections
# Often used in production to improve performance.
CONN_MAX_AGE=60
# ------------------------------------------------------------------------------
# Cache Settings
# ------------------------------------------------------------------------------
# If set, uses DiskCache for Django caching
# e.g.: CACHE_LOCATION=/tmp/django_cache
CACHE_LOCATION=
# Enable Redis caching (default: False)
KITCHENAI_REDIS_CACHE=True
# Redis connection URL for caching
# Format: redis://HOST:PORT/DB_NUMBER
#REDIS_LOCATION=redis://127.0.0.1:6379/1
# ------------------------------------------------------------------------------
# AWS / S3 Settings (used if USE_S3=true)
# ------------------------------------------------------------------------------
# If using S3 or other object storage
USE_S3=True
# MinIO settings
AWS_ACCESS_KEY_ID=minioadmin
AWS_SECRET_ACCESS_KEY=minioadmin
AWS_STORAGE_BUCKET_NAME=kitchenai
AWS_S3_ENDPOINT_URL=http://localhost:9000 # Back to localhost
AWS_DEFAULT_REGION=us-east-1 # Can be any region
#AWS_S3_VERIFY=False # Disable SSL verification for local dev
AWS_S3_ADDRESSING_STYLE=path # Use path-style addressing
# ------------------------------------------------------------------------------
# Email Settings
# ------------------------------------------------------------------------------
# Default 'from' email address
# Server email for error messages
# If using Resend for email sending
RESEND_API_KEY=
# ------------------------------------------------------------------------------
# Security & HTTPS Settings
# ------------------------------------------------------------------------------
# Enable Strict-Transport-Security in production (seconds)
# e.g., 120 for 2 minutes, or 604800 for 1 week
SECURE_HSTS_SECONDS=120
# ------------------------------------------------------------------------------
# Admin / URL Settings
# ------------------------------------------------------------------------------
# Path to Django admin
ADMIN_URL=kitchenai-admin/
DJANGO_ALLOW_REGISTRATION=True
# ------------------------------------------------------------------------------
# Logging Levels
# ------------------------------------------------------------------------------
# Set Django's log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
DJANGO_LOG_LEVEL=INFO
# Set KitchenAI's log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
KITCHENAI_LOG_LEVEL=DEBUG
# ------------------------------------------------------------------------------
# Sentry Settings
# ------------------------------------------------------------------------------
# Enable Sentry reporting
KITCHENAI_SENTRY=False
# DSN for Sentry (URL)
SENTRY_DSN=
# Environment for Sentry (development or production)
SENTRY_ENV=development
# ------------------------------------------------------------------------------
# Admin User Settings
# ------------------------------------------------------------------------------
# Default superuser credentials for initial setup
DJANGO_SUPERUSER_EMAIL=admin@localhost
DJANGO_SUPERUSER_PASSWORD=admin
# ------------------------------------------------------------------------------
# Simple RAG Bento Settings
# ------------------------------------------------------------------------------
# Model type for Simple RAG (litellm, ollama)
MODEL_TYPE=litellm
# Model name for Simple RAG (gpt-4o, groq/llama-3.1-70b-versatile, gpt-4o-mini, llama2, mistral, mixtral)
MODEL_NAME=gpt-4o
# Temperature for model responses (0.0 to 1.0)
TEMPERATURE=0.7
# Vector store type (chroma)
VECTOR_STORE=chroma
# Vector store endpoint
#SIMPLE_RAG_VECTOR_STORE_ENDPOINT=localhost
# Chunk size for text splitting
CHUNK_SIZE=1024
# ------------------------------------------------------------------------------
# KitchenAI Settings
# ------------------------------------------------------------------------------
# Which LLM provider to use (e.g., openai, anthropic, etc.)
LLAMA_CLOUD_API_KEY=
KITCHENAI_LLM_PROVIDER=openai
KITCHENAI_PLUGINS=deepeval_plugin
# KITCHENAI_BENTO_BOXES=kitchenai_rag_simple_bento
# Default LLM model
KITCHENAI_LLM_MODEL=gpt-4o
# Enable built-in KitchenAI auth system
KITCHENAI_AUTH=false
# JWT secret for KitchenAI
KITCHENAI_JWT_SECRET=
# Theme selection from the predefined list
# e.g.: winter, dark, light, dracula, night, forest, cyberpunk, etc.
KITCHENAI_THEME=winter