Repository navigation
Expand file tree
/
Copy pathenv.example
More file actions
93 lines (80 loc) · 3.73 KB
/
Copy pathenv.example
File metadata and controls
93 lines (80 loc) · 3.73 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
# Spending Transaction Monitor Environment Configuration
# Copy this file to .env and update the values
# =============================================================================
# Database Configuration
# =============================================================================
POSTGRES_DB=spending-monitor
POSTGRES_USER=user
POSTGRES_PASSWORD=password
DB_PORT=5432
DATABASE_URL=postgresql+asyncpg://user:password@postgres:5432/spending-monitor
# =============================================================================
# API Configuration
# =============================================================================
API_PORT=8000
ENVIRONMENT=development
BYPASS_AUTH=false
DEBUG=false
# =============================================================================
# CORS Configuration
# =============================================================================
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8080
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8080
ALLOWED_HOSTS=["http://localhost:3000"]
# =============================================================================
# LLM Configuration (Required for AI features)
# =============================================================================
LLM_PROVIDER=openai
BASE_URL=https://api.openai.com/v1
API_KEY=your-openai-api-key-here
MODEL=gpt-3.5-turbo
NODE_ENV=development
# =============================================================================
# Embedding Configuration (for category normalization)
# =============================================================================
# Uses local sentence-transformers by default - no external services required!
EMBEDDING_PROVIDER=local
EMBEDDING_MODEL=all-minilm
EMBEDDING_DIMENSIONS=384
# OLLAMA_BASE_URL=http://localhost:11434 # Only needed if using ollama provider (deprecated)
# LLAMASTACK_BASE_URL=http://localhost:8080 # For future LlamaStack integration
# =============================================================================
# LLM Configuration - vertexai(Required for AI features)
# =============================================================================
# LLM_PROVIDER=vertexai
# Add the following files to the ~/.vertexai folder
# a. sa.json
# b. config.json
# =============================================================================
# Keycloak Authentication (Optional - only if using Keycloak)
# =============================================================================
KEYCLOAK_URL=http://localhost:8080
KEYCLOAK_REALM=spending-monitor
KEYCLOAK_CLIENT_ID=spending-monitor
# Keycloak Setup Script Configuration (used by packages/auth/scripts/setup_keycloak.py)
# These are only needed when running the Keycloak setup script
KEYCLOAK_ADMIN_USER=admin
KEYCLOAK_ADMIN_PASSWORD=admin
KEYCLOAK_REDIRECT_URIS=http://localhost:3000/*
KEYCLOAK_WEB_ORIGINS=http://localhost:3000
KEYCLOAK_DEFAULT_PASSWORD=password123
# For production, update these to secure values:
# KEYCLOAK_ADMIN_USER=your-admin-username
# KEYCLOAK_ADMIN_PASSWORD=your-secure-admin-password
# KEYCLOAK_REDIRECT_URIS=https://app.your-domain.com/*,https://app.your-domain.com
# KEYCLOAK_WEB_ORIGINS=https://app.your-domain.com
# KEYCLOAK_DEFAULT_PASSWORD=your-secure-default-password
# =============================================================================
# SMTP Configuration (for email notifications)
# =============================================================================
SMTP_HOST=smtp4dev
SMTP_PORT=25
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_FROM_EMAIL=spending-monitor@localhost
SMTP_USE_TLS=false
SMTP_USE_SSL=false
# =============================================================================
# UI Configuration
# =============================================================================
VITE_API_BASE_URL=/api