-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
84 lines (61 loc) · 3.12 KB
/
.env.example
File metadata and controls
84 lines (61 loc) · 3.12 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
# =============================================================================
# Copilot Usage Dashboard - Environment Variables
# =============================================================================
# Copy this file to .env and fill in the required values.
# -----------------------------------------------------------------------------
# Required
# -----------------------------------------------------------------------------
# PostgreSQL connection string
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/copilot_dashboard
# Test database URL (used by E2E and Vitest — never points to the main DB)
DATABASE_URL_TEST=postgresql://postgres:postgres@localhost:5432/copilot_dashboard_test
# Encryption key for GitHub App credentials (64 hex characters = 32 bytes)
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
# ENCRYPTION_KEY=c7c9effbfcc8505ba759f71132b1d91609acb99d4ff770ab90d03721bd7c5a56
# Public base URL of the application (used in GitHub App manifest redirect/webhook URLs)
# Required for non-localhost deployments (e.g. https://dashboard.example.com)
# APP_BASE_URL=https://dashboard.example.com
# -----------------------------------------------------------------------------
# Optional - Authentication
# -----------------------------------------------------------------------------
# Authentication method: "credentials" (default) or "azure"
AUTH_METHOD=credentials
# Initial admin credentials (seeded on first run, used when AUTH_METHOD=credentials)
DEFAULT_ADMIN_USERNAME=admin
DEFAULT_ADMIN_PASSWORD=admin
# Session cookie lifetime in hours
SESSION_TIMEOUT_HOURS=24
# -----------------------------------------------------------------------------
# Optional - Azure Entra ID (required when AUTH_METHOD=azure)
# -----------------------------------------------------------------------------
# Azure AD tenant ID
# AZURE_TENANT_ID=your-tenant-id
# Azure AD application (client) ID
# AZURE_CLIENT_ID=your-client-id
# OAuth redirect URI (must match Azure app registration)
# AZURE_REDIRECT_URI=http://localhost:3000/api/auth/callback
# -----------------------------------------------------------------------------
# Optional - Sync Scheduler
# -----------------------------------------------------------------------------
# Cron expression for the sync scheduler (default: midnight daily)
SYNC_CRON_SCHEDULE=0 0 * * *
# Enable/disable seat synchronisation
SEAT_SYNC_ENABLED=true
# Legacy setting (use SYNC_CRON_SCHEDULE instead)
SEAT_SYNC_INTERVAL_HOURS=24
# Trigger sync cycle immediately on container start
SEAT_SYNC_RUN_ON_STARTUP=false
# Enable/disable usage data collection
USAGE_COLLECTION_ENABLED=true
# Trigger usage collection immediately on container start
USAGE_COLLECTION_RUN_ON_STARTUP=false
# -----------------------------------------------------------------------------
# Optional - Docker Compose overrides
# -----------------------------------------------------------------------------
# PostgreSQL container settings (used by docker-compose.yml)
POSTGRES_DB=copilot_dashboard
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_PORT=5432
# Adminer port
ADMINER_PORT=8080