forked from stakwork/hive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
93 lines (71 loc) · 3.19 KB
/
env.example
File metadata and controls
93 lines (71 loc) · 3.19 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
# Database
DATABASE_URL="postgresql://hive_user:hive_password@localhost:5432/hive_db"
# Next.js
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="your-secret-key-here"
# Authentication
# Generate a secure JWT secret using: npm run setup
JWT_SECRET="your-64-character-hex-secret-here"
# GitHub OAuth
# Create a GitHub OAuth app at: https://github.com/settings/developers
GITHUB_CLIENT_ID="your-github-client-id"
GITHUB_CLIENT_SECRET="your-github-client-secret"
# GitHub App
# The slug of your GitHub App (found in your app's settings)
GITHUB_APP_SLUG="your-github-app-slug"
# Development/Codespace Authentication
# When POD_URL is defined, a mock authentication provider will be available
# This allows for easy development without requiring GitHub OAuth setup
# Users can sign in with any username (email auto-generated as username@mock.dev)
# Example: POD_URL="https://your-codespace.github.dev"
# POD_URL="http://localhost:3000"
# Token Encryption (for GitHub OAuth tokens)
# Generate a secure 32+ character key for token encryption
TOKEN_ENCRYPTION_KEY="your-32-character-encryption-key-here"
TOKEN_ENCRYPTION_KEY_ID="k2"
#Key Configuration for rotation
ROTATION_OLD_KEYS='{"k1":"<64-hex-old>"}'
# API Authentication
# Secret token for admin API endpoints (e.g. task title updates)
API_TOKEN="your-secret-api-token-here"
# External Services API Keys
# Stakwork API - Get your API key from https://jobs.stakwork.com
STAKWORK_API_KEY="your-stakwork-api-key-here"
STAKWORK_BASE_URL="https://jobs.stakwork.com/api/v1"
# Comma-separated workflow IDs: Live,Test,Unit
STAKWORK_WORKFLOW_ID="43198,43199,43200"
# Pool Manager API - Get your API key from https://workspaces.sphinx.chat
POOL_MANAGER_API_KEY="your-pool-manager-api-key-here"
POOL_MANAGER_BASE_URL="https://workspaces.sphinx.chat/api"
# Swarm Superadmin API Key - Used for privileged swarm creation
SWARM_SUPERADMIN_API_KEY="your-swarm-superadmin-api-key-here"
SWARM_SUPER_ADMIN_URL="https://swarm.superadmin.api/v1"
# Pool Manager API Credentials
POOL_MANAGER_API_USERNAME="your-pool-manager-api-username-here"
POOL_MANAGER_API_PASSWORD="your-pool-manager-api-password-here"
# Pusher - Real-time messaging service
# Create a free account at https://pusher.com and create an app
PUSHER_APP_ID="your-pusher-app-id"
PUSHER_KEY="your-pusher-key"
PUSHER_SECRET="your-pusher-secret"
PUSHER_CLUSTER="your-pusher-cluster"
# Pusher Client-side (public) variables
NEXT_PUBLIC_PUSHER_KEY="your-pusher-key"
NEXT_PUBLIC_PUSHER_CLUSTER="your-pusher-cluster"
# Feature Flags
# Note: NEXT_PUBLIC_ prefix makes flags available to both client and server
NEXT_PUBLIC_FEATURE_CODEBASE_RECOMMENDATION=false
# AI Services (for future implementation)
# OPENAI_API_KEY=""
# ANTHROPIC_API_KEY=""
# Payment Processing (for bounty system)
# STRIPE_SECRET_KEY=""
# STRIPE_PUBLISHABLE_KEY=""
# Stakwork setup
STAKWORK_CUSTOMERS_EMAIL="customer-email"
STAKWORK_CUSTOMERS_PASSWORD="customer-password"
# Development mode is automatically handled by NODE_ENV
# NODE_ENV=development (set by 'npm run dev')
# NODE_ENV=production (set by 'npm run build' and 'npm run start')
# This controls development-only features like test toggles and mock flows
# GITHUB_WEBHOOK_URL="https://app.example.com/api/github/webhook"