-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
33 lines (27 loc) · 1.15 KB
/
Copy path.env.example
File metadata and controls
33 lines (27 loc) · 1.15 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
# Environment Configuration Example
# Admin Panel Configuration
NODE_ENV=development
NEXT_PUBLIC_ENABLE_ADMIN=true
NEXTAUTH_SECRET=your-secret-key-here
# Admin Password Configuration
# IMPORTANT: Due to Next.js environment parsing issues with $ characters in bcrypt hashes,
# we use an encoded format. Replace underscores (__) with dollar signs ($) to get the actual hash.
# To generate a new hash:
# 1. Use bcrypt to hash your password with salt rounds 12
# 2. Replace all $ characters with __
# 3. Put the result in ADMIN_PASSWORD_HASH_ENCODED
#
# example hash for password "password":2b__12__WC8Q.MnCnPLGGj9AvYlNo.458uKsc8GSqc5eNz.y06RNZ1XSy6wlS
ADMIN_PASSWORD_HASH_ENCODED=your-encoded-hash-here
# Google Maps Configuration (optional)
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=your-google-maps-api-key
# Base URL Configuration
NEXT_PUBLIC_BASE_URL=http://localhost:3000
# Security Configuration (for future security tasks)
CSRF_SECRET=your-csrf-secret
UPLOAD_MAX_SIZE=5242880
RATE_LIMIT_WINDOW=900000
RATE_LIMIT_MAX=100
# For GitHub Contributions Configuration used by the Git Activity block
# GitHub usernames for the contributions API
ALLOWED_GITHUB_USERS=yourgithubusername