-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
60 lines (48 loc) · 1.54 KB
/
.env.example
File metadata and controls
60 lines (48 loc) · 1.54 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
# Application Environment
SWAGGER_API_TITLE="Modulith API"
ENV=dev
HTTP_PORT=8000
GRPC_PORT=9000
# Database
DB_DSN=postgres://postgres:postgres@localhost:5432/modulith_demo?sslmode=disable
# JWT Authentication
JWT_SECRET=your-jwt-secret-key-at-least-32-bytes-long
# Observability (optional)
OTLP_ENDPOINT=localhost:4317
# OAuth Configuration
OAUTH_ENABLED=false
OAUTH_BASE_URL=http://localhost:8000
OAUTH_AUTO_LINK_BY_EMAIL=true
OAUTH_TOKEN_ENCRYPTION_KEY=your-32-byte-encryption-key-here!!
# Google OAuth
OAUTH_GOOGLE_ENABLED=false
OAUTH_GOOGLE_CLIENT_ID=your-google-client-id
OAUTH_GOOGLE_CLIENT_SECRET=your-google-client-secret
# Facebook OAuth
OAUTH_FACEBOOK_ENABLED=false
OAUTH_FACEBOOK_CLIENT_ID=your-facebook-app-id
OAUTH_FACEBOOK_CLIENT_SECRET=your-facebook-app-secret
# GitHub OAuth
OAUTH_GITHUB_ENABLED=false
OAUTH_GITHUB_CLIENT_ID=your-github-client-id
OAUTH_GITHUB_CLIENT_SECRET=your-github-client-secret
# Microsoft OAuth
OAUTH_MICROSOFT_ENABLED=false
OAUTH_MICROSOFT_CLIENT_ID=your-microsoft-client-id
OAUTH_MICROSOFT_CLIENT_SECRET=your-microsoft-client-secret
# Twitter/X OAuth
OAUTH_TWITTER_ENABLED=false
OAUTH_TWITTER_CLIENT_ID=your-twitter-api-key
OAUTH_TWITTER_CLIENT_SECRET=your-twitter-api-secret
# Apple OAuth (requires additional setup)
OAUTH_APPLE_ENABLED=false
OAUTH_APPLE_CLIENT_ID=your-services-id
OAUTH_APPLE_TEAM_ID=your-team-id
OAUTH_APPLE_KEY_ID=your-key-id
OAUTH_APPLE_PRIVATE_KEY_PATH=/path/to/AuthKey.p8
# Valkey (Replaces Redis)
VALKEY_ADDR=localhost:6379
VALKEY_PASSWORD=
VALKEY_DB=0
VALKEY_POOL_SIZE=10
VALKEY_MIN_IDLE_CONNS=2