-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
73 lines (60 loc) · 2.21 KB
/
Copy path.env.example
File metadata and controls
73 lines (60 loc) · 2.21 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
# ============================================
# JROK ENVIRONMENT CONFIGURATION
# ============================================
# IMPORTANT: Copy this file to .env and fill in your values
# NEVER commit .env to version control!
# ============================================
# REQUIRED IN PRODUCTION
# ============================================
# MongoDB Atlas Connection (REQUIRED)
# Get connection string from: https://www.mongodb.com/cloud/atlas
# Format: mongodb+srv://username:password@cluster.mongodb.net/jrok?retryWrites=true&w=majority
MONGODB_URI=mongodb://localhost:27017/jrok
# JWT Secret for authentication (REQUIRED - generate a secure random string)
# Generate with: openssl rand -base64 64
# In production, this MUST be set or the server will refuse to start
JWT_SECRET=
# Base domain for tunnel subdomains (REQUIRED)
BASE_DOMAIN=tunnel.example.com
# ============================================
# KOOMPI OAuth (REQUIRED for dashboard login)
# ============================================
# Get these from https://dash.koompi.org after creating a project
KOOMPI_CLIENT_ID=
KOOMPI_CLIENT_SECRET=
KOOMPI_REDIRECT_URI=http://localhost:3000/auth/callback
# ============================================
# SERVER CONFIGURATION
# ============================================
# Server port
PORT=3000
# Environment mode (development | production)
NODE_ENV=development
# Dashboard URL (used for OAuth redirects)
DASHBOARD_URL=http://localhost:5173
# Allowed CORS origins (comma-separated)
# In production, set this to your actual dashboard URL(s)
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:3000
# VPS Server Configuration (Multi-VPS setup)
# This can be a JSON string or environment variable per server
# Example VPS servers (as JSON, define in MongoDB directly or via API)
# VPS_SERVERS=[
# {
# "id": "vps1",
# "name": "Primary VPS",
# "host": "vps1.example.com",
# "sshUser": "root",
# "sshPort": 22,
# "nginxPath": "/etc/nginx/sites-available",
# "region": "us-east"
# },
# {
# "id": "vps2",
# "name": "Secondary VPS",
# "host": "vps2.example.com",
# "sshUser": "root",
# "sshPort": 22,
# "nginxPath": "/etc/nginx/sites-available",
# "region": "eu-west"
# }
# ]