-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
86 lines (74 loc) · 2.72 KB
/
.env.example
File metadata and controls
86 lines (74 loc) · 2.72 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
85
86
# Web App Environment Variables
NEXT_PUBLIC_AUTH_API_URL=http://localhost:3001
NEXT_PUBLIC_RIDES_API_URL=http://localhost:3002
NEXT_PUBLIC_REVIEWS_API_URL=http://localhost:3003
NEXT_PUBLIC_CHAT_API_URL=http://localhost:3004
NEXT_PUBLIC_API_BASE_URL=http://localhost:3000
# OAuth 2.0 Configuration
OAUTH_GOOGLE_CLIENT_ID=your-client-id
OAUTH_GOOGLE_CLIENT_SECRET=your-client-secret
OAUTH_GOOGLE_CALLBACK_URL=http://localhost:3000/api/auth/callback/google
OAUTH_MICROSOFT_CLIENT_ID=your-client-id
OAUTH_MICROSOFT_CLIENT_SECRET=your-client-secret
OAUTH_MICROSOFT_CALLBACK_URL=http://localhost:3000/api/auth/callback/microsoft
# JWT Configuration
JWT_PRIVATE_KEY=path/to/private.key
JWT_PUBLIC_KEY=path/to/public.key
JWT_ALGORITHM=RS256
JWT_ACCESS_TOKEN_EXPIRES_IN=15m
JWT_REFRESH_TOKEN_EXPIRES_IN=7d
# Security Settings
SECURITY_CORS_ORIGINS=http://localhost:3000,https://avec.example.com
SECURITY_RATE_LIMIT_WINDOW=15m
SECURITY_RATE_LIMIT_MAX_REQUESTS=100
SECURITY_PASSWORD_SALT_ROUNDS=12
SECURITY_SESSION_SECRET=your-session-secret
SECURITY_CSRF_SECRET=your-csrf-secret
# Auth Service
AUTH_SERVICE_PORT=3001
AUTH_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/avec_auth
AUTH_REDIS_URL=redis://localhost:6379/0
AUTH_RABBITMQ_URL=amqp://localhost:5672
AUTH_SMTP_HOST=smtp.example.com
AUTH_SMTP_PORT=587
AUTH_SMTP_USER=your-smtp-user
AUTH_SMTP_PASS=your-smtp-password
# Rides Service
RIDES_SERVICE_PORT=3002
RIDES_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/avec_rides
RIDES_REDIS_URL=redis://localhost:6379/1
RIDES_RABBITMQ_URL=amqp://localhost:5672
RIDES_MAPS_API_KEY=your-maps-api-key
# Reviews Service
REVIEWS_SERVICE_PORT=3003
REVIEWS_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/avec_reviews
REVIEWS_REDIS_URL=redis://localhost:6379/2
REVIEWS_RABBITMQ_URL=amqp://localhost:5672
REVIEWS_AI_MODERATION_KEY=your-ai-moderation-key
# Chat Service
CHAT_SERVICE_PORT=3004
CHAT_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/avec_chat
CHAT_REDIS_URL=redis://localhost:6379/3
CHAT_RABBITMQ_URL=amqp://localhost:5672
CHAT_WEBSOCKET_PATH=/ws
CHAT_MESSAGE_RETENTION_DAYS=30
# Payment Service
PAYMENT_SERVICE_PORT=3005
PAYMENT_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/avec_payments
PAYMENT_REDIS_URL=redis://localhost:6379/4
PAYMENT_RABBITMQ_URL=amqp://localhost:5672
STRIPE_SECRET_KEY=your-stripe-secret-key
STRIPE_WEBHOOK_SECRET=your-stripe-webhook-secret
STRIPE_CONNECT_CLIENT_ID=your-stripe-connect-client-id
# Monitoring
SENTRY_DSN=your-sentry-dsn
PROMETHEUS_METRICS_PORT=9090
GRAFANA_PORT=3000
# Infrastructure
KUBERNETES_NAMESPACE=avec
DOCKER_REGISTRY=your-registry.azurecr.io
TERRAFORM_STATE_BUCKET=avec-terraform-state
# Common Settings
NODE_ENV=development
LOG_LEVEL=debug
CORS_ORIGIN=http://localhost:3000