forked from Cognize-AI/server-cognize
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
81 lines (69 loc) · 2.62 KB
/
.env.example
File metadata and controls
81 lines (69 loc) · 2.62 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
# ================================
# Cognize API Server Configuration
# ================================
# Copy this file to .env and update with your actual values
# DO NOT commit .env files to version control
# ======================
# Server Configuration
# ======================
# Port number for the server to listen on
PORT=4000
# Environment mode: dev, staging, prod
ENVIRONMENT=dev
# ======================
# Database Configuration
# ======================
# PostgreSQL connection string
# Format: postgres://[username[:password]@][host[:port]]/database[?options]
# Local development (with Docker)
DB_STRING=postgres://root:root@localhost:5432/cognize?sslmode=disable
# Production example (uncomment and modify for production)
# DB_STRING=postgres://username:password@db-host:5432/cognize?sslmode=require
# ======================
# Authentication & Security
# ======================
# JWT signing secret - MUST be at least 32 characters long
# Generate with: openssl rand -hex 32
JWT_SECRET=change-this-to-a-long-secure-random-string-32-chars-min
# Google OAuth Configuration
# Get these from Google Cloud Console > APIs & Services > Credentials
GOOGLE_OAUTH_CLIENT_ID=your-google-oauth-client-id.apps.googleusercontent.com
GOOGLE_OAUTH_CLIENT_SECRET=your-google-oauth-client-secret
GOOGLE_OAUTH_REDIRECT_URL=http://localhost:3000/auth/callback
# ======================
# Email Configuration (Optional)
# ======================
# SMTP settings for sending emails
# Gmail example:
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your-email@gmail.com
SMTP_PASSWORD=your-app-password
# AWS SES example:
# SMTP_HOST=email-smtp.us-east-1.amazonaws.com
# SMTP_PORT=587
# SMTP_USERNAME=your-ses-smtp-username
# SMTP_PASSWORD=your-ses-smtp-password
# ======================
# Logging Configuration (Optional)
# ======================
# Axiom logging service integration
# Get these from axiom.co after creating an account
AXIOM_TOKEN=your-axiom-api-token
AXIOM_ORG=your-axiom-organization
AXIOM_DATASET=cognize-logs
# ======================
# Additional Security (Optional)
# ======================
# Additional encryption secret for sensitive operations
# Generate with: openssl rand -hex 32
ENC_SECRET=another-long-secure-random-string-for-encryption
# ======================
# Development Notes
# ======================
# 1. For production, use strong, randomly generated secrets
# 2. Enable SSL/TLS for database connections in production
# 3. Use managed database services (AWS RDS, Google Cloud SQL, etc.)
# 4. Never commit this file to version control
# 5. Rotate secrets regularly in production environments
# 6. Use environment-specific configuration files