-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
64 lines (52 loc) · 1.89 KB
/
.env.example
File metadata and controls
64 lines (52 loc) · 1.89 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
# SalamHub Environment Configuration
# Copy this file to .env and fill in your values
# ==================== DATABASE ====================
# PostgreSQL connection string
DATABASE_URL="postgresql://user:password@localhost:5432/salamhub?schema=public"
# ==================== AUTHENTICATION ====================
# JWT Secret - generate a secure random string for production
JWT_SECRET="your-super-secret-jwt-key-change-in-production"
JWT_EXPIRES_IN="15m"
JWT_REFRESH_EXPIRES_IN="7d"
# ==================== APP CONFIGURATION ====================
# Application URL
NEXT_PUBLIC_APP_URL="http://localhost:3000"
NEXT_PUBLIC_APP_NAME="SalamHub"
# ==================== STORAGE (Cloudflare R2 / AWS S3) ====================
# Storage configuration for media files
STORAGE_ENDPOINT=""
STORAGE_ACCESS_KEY_ID=""
STORAGE_SECRET_ACCESS_KEY=""
STORAGE_BUCKET_NAME=""
STORAGE_REGION="auto"
STORAGE_PUBLIC_URL=""
# ==================== REDIS (Optional - for caching and sessions) ====================
REDIS_URL="redis://localhost:6379"
# ==================== EMAIL (Optional - for notifications) ====================
SMTP_HOST=""
SMTP_PORT="587"
SMTP_USER=""
SMTP_PASSWORD=""
SMTP_FROM="noreply@salamhub.com"
# ==================== SEARCH (Meilisearch - Optional) ====================
MEILISEARCH_HOST="http://localhost:7700"
MEILISEARCH_API_KEY=""
# ==================== SECURITY ====================
# Rate limiting
RATE_LIMIT_MAX="100"
RATE_LIMIT_WINDOW="60000"
# Password hashing
BCRYPT_SALT_ROUNDS="12"
# ==================== FEATURES ====================
# Enable/disable features
ENABLE_REGISTRATION="true"
ENABLE_DIRECT_MESSAGES="true"
ENABLE_GROUPS="true"
ENABLE_STORIES="false"
# ==================== MODERATION ====================
# Content moderation settings
AUTO_MODERATION_ENABLED="true"
CONTENT_WARNING_KEYWORDS=""
# ==================== LOCALIZATION ====================
DEFAULT_LANGUAGE="ar"
SUPPORTED_LANGUAGES="ar,en"