-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
129 lines (110 loc) · 4 KB
/
.env.example
File metadata and controls
129 lines (110 loc) · 4 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
# ============================================
# VRecommendation - Environment Configuration
# ============================================
# Copy this file to .env and update the values
# ============================================
# ==========================================
# HOST IP Configuration
# ==========================================
# Replace with your machine's actual IP address
# Find it using: ipconfig (Windows) or ifconfig (Linux/macOS)
# Example: 192.168.1.100
HOST_IP=192.168.1.100
# ==========================================
# Frontend Configuration
# ==========================================
FRONTEND_PORT=5173
FRONTEND_URL=http://localhost:5173
# Custom allowed CORS origins (comma-separated, optional)
# Add your DDNS domain, ngrok URL, or other custom domains here
# Examples:
# ALLOWED_ORIGINS=http://yourdomain.ddns.net:5173,http://yourdomain.ddns.net:2030
# ALLOWED_ORIGINS=https://abc123.ngrok.io
# ALLOWED_ORIGINS=
# IMPORTANT: For LAN access, these must use the HOST_IP, not localhost!
# These URLs are used by the browser to call APIs
VITE_API_SERVER_URL=http://192.168.1.100:2030
VITE_AI_SERVER_URL=http://192.168.1.100:9999
# ==========================================
# API Server (Go) Configuration
# ==========================================
API_SERVER_PORT=2030
API_SERVER_HOST=0.0.0.0
API_SERVER_READ_TIMEOUT=60
STATUS_DEV=dev
# ==========================================
# AI Server (Python) Configuration
# ==========================================
AI_SERVER_PORT=9999
AI_SERVER_HOST=0.0.0.0
# ==========================================
# Redis Configuration
# ==========================================
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# ==========================================
# Kafka Configuration
# ==========================================
KAFKA_PORT=9092
KAFKA_BOOTSTRAP_SERVERS=kafka:9093
KAFKA_GROUP_ID=vrecom_ai_server_group
# ==========================================
# Kafka UI Configuration
# ==========================================
KAFKA_UI_PORT=8080
# ==========================================
# Database Configuration (MySQL)
# ==========================================
MYSQL_HOST=mysql
MYSQL_PORT=3306
MYSQL_USER=admin
MYSQL_PASSWORD=pokiwar0981
MYSQL_DATABASE=shop
# ==========================================
# Database Configuration (MongoDB)
# ==========================================
MONGODB_HOST=mongodb
MONGODB_PORT=27017
MONGODB_USERNAME=root
MONGODB_PASSWORD=password
# ==========================================
# Prometheus Configuration
# ==========================================
PROMETHEUS_PORT=9090
# ==========================================
# Security Keys
# ==========================================
# WARNING: Change these in production!
JWT_SECRET_KEY=your-super-secret-jwt-key-change-in-production
SESSION_SECRET=your-super-secret-session-key-change-in-production
# ==========================================
# OAuth Configuration (optional)
# ==========================================
# Google OAuth
# GOOGLE_CLIENT_ID=your-google-client-id
# GOOGLE_CLIENT_SECRET=your-google-client-secret
# GOOGLE_REDIRECT_URL=http://192.168.1.100:2030/api/v1/auth/google/callback
# GitHub OAuth
# GITHUB_CLIENT_ID=your-github-client-id
# GITHUB_CLIENT_SECRET=your-github-client-secret
# GITHUB_REDIRECT_URL=http://192.168.1.100:2030/api/v1/auth/github/callback
# ==========================================
# Admin Portal Configuration
# ==========================================
# Note: Admin Portal runs separately, not in Docker
# It ONLY binds to localhost for security
ADMIN_PORTAL_PORT=3456
API_SERVER_URL=http://localhost:2030
# ==========================================
# Google OAuth Configuration
# ==========================================
# Get these from Google Cloud Console
# GOOGLE_CLIENT_ID=your-client-id
# GOOGLE_CLIENT_SECRET=your-client-secret
GOOGLE_CALLBACK_URL=http://localhost:2030/api/v1/auth/google/callback
GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=..
# Public callback URL for LAN/ngrok access
GOOGLE_CALLBACK_URL_PUBLIC=..