-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.env.example
More file actions
63 lines (53 loc) · 2.97 KB
/
.env.example
File metadata and controls
63 lines (53 loc) · 2.97 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
# ==============================================================================
# MEMORY TRACKER - DOCKER ENVIRONMENT CONFIGURATION
# ==============================================================================
# This file provides example environment variables for running the Memory Tracker
# application with Docker. Copy this file to .env and update the values for your
# deployment.
# ==============================================================================
# DATABASE CONFIGURATION
# ==============================================================================
# Database connection URL - PostgreSQL is used in Docker setup
# Format: postgresql+asyncpg://username:password@host:port/database
DATABASE_URL=postgresql+asyncpg://memory_tracker_user:memory_tracker_password@db:5432/memory_tracker
# PostgreSQL database configuration (used by Docker Compose)
POSTGRES_DB=memory_tracker
POSTGRES_USER=memory_tracker_user
POSTGRES_PASSWORD=memory_tracker_password
# ==============================================================================
# GITHUB OAUTH CONFIGURATION
# ==============================================================================
# GitHub OAuth app credentials for user authentication
# Create a GitHub OAuth app at: https://github.com/settings/applications/new
GITHUB_CLIENT_ID=your_github_client_id_here
GITHUB_CLIENT_SECRET=your_github_client_secret_here
# OAuth redirect URI - update with your domain
OAUTH_REDIRECT_URI=http://localhost:3000/auth/callback
# Secret key for OAuth state parameter - change in production
OAUTH_STATE_SECRET=your-secret-key-change-me-in-production
# ==============================================================================
# ADMIN AUTHENTICATION
# ==============================================================================
# Initial admin username (REQUIRED)
# This user will be created with admin privileges during database initialization
ADMIN_INITIAL_USERNAME=your_github_username
# ==============================================================================
# API SERVER CONFIGURATION
# ==============================================================================
# API server host and port
API_HOST=0.0.0.0
API_PORT=8000
# CORS origins - comma-separated list of allowed origins
CORS_ORIGINS=http://localhost:3000,http://localhost:9002
# ==============================================================================
# FRONTEND CONFIGURATION
# ==============================================================================
# Frontend API base URL - should point to your backend
NEXT_PUBLIC_API_BASE=http://localhost:8000
# ==============================================================================
# WORKER AUTHENTICATION
# ==============================================================================
# Authentication token for worker operations (optional)
# Alternative to using --auth-token command line argument
# Generate using: python backend/scripts/manage_tokens.py create "Worker Name"
MEMORY_TRACKER_TOKEN=your_worker_token_here