Back to Home

.env.example

Environment variables configuration template for kubiq.

.env.example
1# --- Core Configuration ---
2PORT=3000
3NODE_ENV=production
4
5# CORS Configuration
6FRONTEND_DNS=https://frontend-dns.com
7CORS_ORIGIN=https://frontend-dns.com
8
9BACKEND_DNS=https://api.yourdomain.com
10
11# --- Database Configuration (DB_TYPE: json | mysql | mongo) ---
12DB_TYPE=json
13
14# MySQL Config (Required if DB_TYPE=mysql)
15# DB_HOST=dbhost
16# DB_PORT=3306
17# DB_USER=dbuser
18# DB_PASS=dbpass
19# DB_NAME=kubiq_db
20
21# MongoDB Config (Required if DB_TYPE=mongo)
22# DB_URI=mongodb://mongo:27017/kubiq_db
23
24# --- Service Configuration ---
25POLL_INTERVAL=30000 # Interval in ms to check services
26REQUEST_TIMEOUT=5000 # Timeout for HTTP requests
27
28# --- Data Persistence ---
29ENABLE_PERSISTENCE=false
30DATA_DIR=/app/data
31SNAPSHOT_INTERVAL=300000 # How often to save JSON snapshot (ms)
32
33# --- Security & Auth ---
34NATIVE_AUTH_ENABLED=true
35JWT_SECRET=change-this-secret # Change this in production!
36
37# --- WebAuthn / Passkeys (Optional) ---
38# RP_ID=yourdomain.com
39# ORIGIN=https://yourdomain.com
40
41# --- Keycloak OIDC (Optional) ---
42# KEYCLOAK_ENABLED=false
43# KEYCLOAK_REALM=myrealm
44# KEYCLOAK_URL=https://auth.example.com
45# KEYCLOAK_CLIENT_ID=kubiq
46