-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
76 lines (66 loc) · 3 KB
/
env.example
File metadata and controls
76 lines (66 loc) · 3 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
# Trender Environment Variables Configuration
# Copy this file to .env and fill in your actual values
# DO NOT commit the .env file to version control
# =============================================================================
# GITHUB AUTHENTICATION — choose ONE method
# =============================================================================
# Option 1: Personal Access Token (PAT) — simplest, recommended
# Create at: https://github.com/settings/tokens/new (scopes: repo, read:org)
GITHUB_PAT=ghp_your_personal_access_token_here
# Option 2: OAuth App — tokens auto-refresh every 8 hours
# Create at: https://github.com/settings/developers
# Callback URL: http://localhost:8000/callback
# Run: cd workflows && python auth_setup.py
GITHUB_CLIENT_ID=Iv23_your_client_id_here
GITHUB_CLIENT_SECRET=your_oauth_client_secret_here
GITHUB_TOKEN_ENCRYPTION_KEY=<generated-by-auth_setup.py>
# =============================================================================
# DATABASE
# =============================================================================
# Required: PostgreSQL connection string
# Format: postgresql://username:password@host:port/database
DATABASE_URL=postgresql://username:password@host:port/database_name
# =============================================================================
# RENDER API
# =============================================================================
# Required: API key from https://dashboard.render.com/u/settings#api-keys
RENDER_API_KEY=rnd_your_render_api_key_here
# Required: Workflow slug from Render dashboard
RENDER_WORKFLOW_SLUG=trender
# =============================================================================
# LOCAL DEVELOPMENT
# =============================================================================
# Set to true to run workflows against local task server (for testing)
RENDER_USE_LOCAL_DEV=true
RENDER_LOCAL_DEV_URL=http://localhost:8120
# Development mode: Run lightweight version with limited data
DEV_MODE=true
DEV_REPO_LIMIT=5
# =============================================================================
# NEXT.JS DASHBOARD (Optional)
# =============================================================================
# Inherits DATABASE_URL from above. Customize if needed:
NODE_ENV=production
# PORT=3000
# =============================================================================
# QUICK START
# =============================================================================
# 1. Authentication:
# cd workflows && python auth_setup.py
# Follow prompts to set up PAT or OAuth, then add tokens to .env
#
# 2. Database:
# Set DATABASE_URL to your PostgreSQL connection string
# (Render auto-connects this for linked services)
#
# 3. Render API:
# Create workflow in Render dashboard, add API key and workflow slug
#
# 4. Local Testing:
# Set RENDER_USE_LOCAL_DEV=true and run:
# python bin/local_dev.py
#
# 5. Security:
# - Never commit .env to git
# - Rotate tokens regularly
# - Use different tokens for dev/staging/production