-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.example
More file actions
101 lines (85 loc) · 4.04 KB
/
env.example
File metadata and controls
101 lines (85 loc) · 4.04 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Auto-PostIt Environment Configuration
# Copy to /etc/auto-postit/auto-postit.env (prod) or .env (dev)
# NEVER commit real secrets to version control
# =============================================================================
# DOCKER COMPOSE / INFRA (used by docker-compose)
# =============================================================================
POSTGRES_USER=autopostit
POSTGRES_PASSWORD=your_secure_postgres_password_here
POSTGRES_DB=autopostit
REDIS_PASSWORD=your_secure_redis_password_here
# =============================================================================
# APPLICATION
# =============================================================================
NODE_ENV=development
PORT=3001
# Database (for local development)
DATABASE_URL=postgresql://autopostit:autopostit_dev_password@localhost:5432/autopostit
# Redis (for local development)
REDIS_URL=redis://localhost:6379
# =============================================================================
# SECURITY - generate with: openssl rand -hex 32
# =============================================================================
SESSION_SECRET=your_session_secret_here_use_openssl_rand_hex_32
COOKIE_SECRET=your_cookie_secret_here_use_openssl_rand_hex_32
TOKEN_ENCRYPTION_KEY=your_token_encryption_key_here_use_openssl_rand_hex_32
CSRF_SECRET=your_csrf_secret_here_use_openssl_rand_hex_32
# =============================================================================
# CORS / APPLICATION URL
# =============================================================================
# Your application URL (no trailing slash)
CORS_ORIGIN=http://localhost:5173
# =============================================================================
# MFA
# =============================================================================
MFA_ISSUER=Auto-PostIt
# =============================================================================
# MEDIA
# =============================================================================
# Host path to local media folder (used by docker-compose)
MEDIA_HOST_PATH=./media
# Media paths inside the backend container
MEDIA_PATH=./media
MEDIA_UPLOADS_PATH=./uploads
# Max image size in bytes (default: 10MB)
MEDIA_MAX_IMAGE_SIZE=10485760
# Max video size in bytes (default: 500MB)
MEDIA_MAX_VIDEO_SIZE=524288000
# Max total uploads per user in bytes (default: 10GB)
MEDIA_MAX_USER_STORAGE=10737418240
# Base URL for media files (leave empty to use relative paths)
MEDIA_BASE_URL=
# =============================================================================
# OPTIONAL - AI Content Assistant (OpenAI)
# =============================================================================
OPENAI_API_KEY=
OPENAI_DEFAULT_MODEL=gpt-4o-mini
OPENAI_AVAILABLE_MODELS=gpt-4o,gpt-4o-mini,gpt-3.5-turbo
# =============================================================================
# OPTIONAL - Social Platform OAuth Credentials
# Fill these in when you're ready to connect each platform
# =============================================================================
# Twitter/X (https://developer.twitter.com)
TWITTER_CLIENT_ID=
TWITTER_CLIENT_SECRET=
# Use http://localhost:8080 in docker-compose, or http://localhost:3001 when running backend directly
TWITTER_CALLBACK_URL=http://localhost:8080/public/oauth/twitter/callback
TWITTER_MEDIA_UPLOAD_ENABLED=false
# LinkedIn (https://www.linkedin.com/developers)
LINKEDIN_CLIENT_ID=
LINKEDIN_CLIENT_SECRET=
LINKEDIN_CALLBACK_URL=http://localhost:8080/public/oauth/linkedin/callback
# Facebook (https://developers.facebook.com)
FACEBOOK_APP_ID=
FACEBOOK_APP_SECRET=
FACEBOOK_CALLBACK_URL=http://localhost:8080/public/oauth/facebook/callback
# Instagram (uses Facebook app credentials)
INSTAGRAM_CALLBACK_URL=http://localhost:8080/public/oauth/instagram/callback
# YouTube/Google (https://console.cloud.google.com)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK_URL=http://localhost:8080/public/oauth/youtube/callback
# Pinterest (https://developers.pinterest.com)
PINTEREST_APP_ID=
PINTEREST_APP_SECRET=
PINTEREST_CALLBACK_URL=http://localhost:8080/public/oauth/pinterest/callback