# ========================================
# YOUR ACTUAL .env FILE CONFIGURATION
# Copy this content to create .env file on your server
# ========================================

NODE_ENV=production
PORT=3000

# Your cPanel Database Credentials
DB_HOST=localhost
DB_USER=rootclockin_user
DB_PASSWORD=#1_Oc&FelV$B.c9I
DB_NAME=rootclockin_db
DB_PORT=3306

# JWT Secret (Generate new one - see command below)
JWT_SECRET=GENERATE_THIS_FIRST_SEE_BELOW

# Super Admin Credentials
SUPER_ADMIN_EMAIL=admin@faceml.com
SUPER_ADMIN_PASSWORD=Admin@123


# ========================================
# HOW TO CREATE THIS FILE ON YOUR SERVER
# ========================================

# Method 1: Using File Manager in cPanel
# 1. Go to cPanel > File Manager
# 2. Navigate to your backend folder
# 3. Click "New File" and name it: .env
# 4. Right-click the file and choose "Edit"
# 5. Copy-paste the above configuration
# 6. Save and close

# Method 2: Using SSH/Terminal
cd /path/to/your/backend
nano .env
# Then paste the above content and save (Ctrl+X, Y, Enter)


# ========================================
# GENERATE JWT_SECRET
# ========================================
# Run this command on your server to generate a secure secret:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"

# Copy the output and replace JWT_SECRET=GENERATE_THIS_FIRST_SEE_BELOW
# with JWT_SECRET=your_generated_secret_here


# ========================================
# EXAMPLE WITH GENERATED JWT_SECRET
# ========================================
# After generating JWT secret, your .env should look like:

NODE_ENV=production
PORT=3000
DB_HOST=localhost
DB_USER=rootclockin_user
DB_PASSWORD=#1_Oc&FelV$B.c9I
DB_NAME=rootclockin_db
DB_PORT=3306
JWT_SECRET=a7f8d9e6c5b4a3927f8e9d0c1b2a3f4e5d6c7b8a9f0e1d2c3b4a5f6e7d8c9b0
SUPER_ADMIN_EMAIL=admin@faceml.com
SUPER_ADMIN_PASSWORD=Admin@123


# ========================================
# SECURITY NOTES
# ========================================
# 1. Keep this file secure - don't share it publicly
# 2. The password contains special characters (#, $, &, !) which is good
# 3. Change SUPER_ADMIN_PASSWORD after first login
# 4. Never commit .env file to git

