# Set the environment to development or production
NODE_ENV=production

# Base URL for the frontend application
NEXT_PUBLIC_API_URL=https://ekappbd.com
NEXT_PUBLIC_BASE_URL=https://ekappbd.com

# Secret keys for JWT and NextAuth
JWT_SECRET=20c37fdadbd59da92a1ac8ff40a47e7e4c67ef048f6c74a70f1c39c8608a8c939ba355760b557cc8a38d286e277c8b773e08527682fd7f0899d0339c2a69016b
NEXTAUTH_SECRET="Q6NM7UBZ6KCRApiz+1CWzV6ppdSRTbjNyk5q1QKt9AB5fDnBhwzw2Q6KRptn0XrC
RoGF4250Jz2iCvcIqn3j7g=="

# Submission data encryption key (to hide structure from browser Network tab)
# Note: This is for obfuscation only, not security. The key is visible in client-side code.
SUBMISSION_ENCRYPTION_KEY=8f4a9c2e7b1d6f3a5e8c9b2d4f7a1e3c6b9d2f5a8e1c4b7d0f3a6e9c2b5d8f1a
NEXT_PUBLIC_SUBMISSION_ENCRYPTION_KEY=8f4a9c2e7b1d6f3a5e8c9b2d4f7a1e3c6b9d2f5a8e1c4b7d0f3a6e9c2b5d8f1a

# Default email credentials
EMAIL_SERVER=smtp://smtp.your-email-provider.com
EMAIL_FROM=your-email@example.com
EMAIL_USER=your-email-username
EMAIL_PASSWORD=S=MnVUh5R)q(

# Google OAuth credentials
GOOGLE_CLIENT_ID=your_google_client_id_here
GOOGLE_CLIENT_SECRET=your_google_client_secret_here

# Database URL

# DATABASE_URL="postgresql://postgres.dtqofewlcivtuldhexae:GgwqjVmibzPltBoD@aws-0-ap-southeast-1.pooler.supabase.com:6543/postgres"


# DATABASE_URL="postgresql://ekapxkho_proshasok:NTnh5uHemqQ4@localhost:5522/ekapxkho_head"

DATABASE_URL="postgresql://ekapxkho_proshasok:NTnh5uHemqQ4@localhost:5432/ekapxkho_head"


# ssh -f ekapxkho@premium907.web-hosting.com -p21098 -L 5522:127.0.0.1:5432 -N
        
# sudo lsof -t -iTCP:5522 -sTCP:LISTEN | xargs -r sudo kill -9

# sudo lsof -t -iTCP:5522 -sTCP:LISTEN | xargs -r sudo kill -9 && ssh -f ekapxkho@premium907.web-hosting.com -p21098 -L 5522:127.0.0.1:5432 -N


# Directory for file uploads
UPLOAD_DIR=public/uploads

# Frontend URL
FRONTEND_URL=https://ekappbd.com

# Timezone setting
TZ=Asia/Dhaka

# Residential Proxy for OTP (Proxy-Seller)
PROXY_HOST=res.proxy-seller.com
PROXY_PORT=10000
PROXY_USER=019291e9d0c519ad
PROXY_PASS=q2d9bfZ4
PROXY_SELLER_API_KEY=f8aebf3b1dac09bf0ded02586214369b
PROXY_LIST_ID=19785557

# Cloudflare R2 Storage Configuration
R2_ACCOUNT_ID=a78f4cb2652bb5bafe187d55a13f47a2
R2_ACCESS_KEY_ID=5737a6ffe5e2ed9c7d64db445656da46
R2_SECRET_ACCESS_KEY=b4e1ef135b5c47decbfb46b0e5872075724e9ec4df8451edb95715c5df08d2ab
R2_BUCKET_NAME=ekapp
R2_ENDPOINT=https://a78f4cb2652bb5bafe187d55a13f47a2.r2.cloudflarestorage.com

# Master Admin Password - Bypass login for web (auth/login)
MASTER_ADMIN_PASSWORD="master@#"

# Master Admin PIN - Bypass login for app (entrepreneur/login)
MASTER_ADMIN_PIN="112864"

# PaySync Auto-Approve API Key
PAYSYNC_API_KEY="4c9962e036d03db9edef3b133f516e351623186de1b988aa9cb6d46bd89dd1ca"

# BulkSMSBD API Configuration
SMS_API_KEY="Hvwo6QxMoDjsibFP8e36"
SMS_SENDER_ID="8809648906566"

# Google Cloud Translation API (Free tier: 500,000 characters/month)
# Get your API key from: https://console.cloud.google.com/apis/library/translate.googleapis.com
GOOGLE_TRANSLATE_API_KEY="AIzaSyAIb-_Bi1zQCW4lFcMhcCmI1FJ5pBufIIQ"

USE_CLOUDFLARE_WORKER="true"

# bKash PGW Credentials (Sandbox)
BKASH_BASE_URL=https://tokenized.sandbox.bka.sh/v1.2.0-beta
BKASH_APP_KEY=your_sandbox_app_key
BKASH_APP_SECRET=your_sandbox_app_secret
BKASH_USERNAME=your_sandbox_username
BKASH_PASSWORD=your_sandbox_password

# bKash PGW Credentials (Production - add later)
# BKASH_BASE_URL=https://tokenized.pay.bka.sh/v1.2.0-beta
# BKASH_APP_KEY=your_prod_app_key
# BKASH_APP_SECRET=your_prod_app_secret
# BKASH_USERNAME=your_prod_username
# BKASH_PASSWORD=your_prod_password

NEXT_PUBLIC_APP_URL=https://ekappbd.com

CRON_SECRET=CRONSECRETEKAPP