-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
48 lines (39 loc) · 1.13 KB
/
Copy path.env.example
File metadata and controls
48 lines (39 loc) · 1.13 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
# Project Settings
PROJECT_NAME="DIBO API"
VERSION="0.1.0"
API_V1_STR="/api/v1"
API_BASE_URL="http://localhost:8000"
# Server Settings
HOST="0.0.0.0"
PORT=8000
DEBUG=true
RELOAD=true
WORKERS=1
# Security
SECRET_KEY="your-secret-key-here" # Change this in production!
# GitHub OAuth Configuration - Production
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_CALLBACK_URL=
# GitHub OAuth Configuration - Development
DEV_GITHUB_CLIENT_ID=
DEV_GITHUB_CLIENT_SECRET=
DEV_GITHUB_CALLBACK_URL="http://localhost:8000/api/v1/auth/callback"
# CORS Settings
BACKEND_CORS_ORIGINS="http://localhost:3000,http://localhost:8000"
ALLOW_CREDENTIALS=true
ALLOW_METHODS="*"
ALLOW_HEADERS="*"
# Rate Limiting
RATE_LIMIT_AUTHENTICATED=1000 # requests/hour
RATE_LIMIT_ANONYMOUS=60 # requests/hour
# Data Files
DATA_DIR="./data" # Relative to project root
GEMS_FILE="${DATA_DIR}/gems.json"
BUILDS_FILE="${DATA_DIR}/builds.json"
# Logging
LOG_LEVEL="INFO" # DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_FORMAT="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
# Development Settings
TESTING=false
ENVIRONMENT="development" # development, staging, production