Files
sistem-desa-mandiri/.env.example
2026-03-06 10:42:45 +08:00

53 lines
2.1 KiB
Plaintext

# ===========================================
# SISTEM DESA MANDIRI - ENVIRONMENT VARIABLES
# ===========================================
# Copy this file to .env and fill in the appropriate values
# ===========================================
# DATABASE CONFIGURATION
# ===========================================
# PostgreSQL, MySQL, or SQLite connection string
# Example (PostgreSQL): postgresql://user:password@localhost:5432/dbname
# Example (MySQL): mysql://user:password@localhost:3306/dbname
# Example (SQLite): file:./dev.db
DATABASE_URL="your-database-url-here"
# ===========================================
# FIREBASE ADMIN SDK (For FCM Push Notifications)
# ===========================================
# Google Cloud project ID
GOOGLE_PROJECT_ID="your-google-project-id"
# Google service account client email
GOOGLE_CLIENT_EMAIL="your-service-account-email@your-project.iam.gserviceaccount.com"
# Google service account private key (include the full key with newlines)
GOOGLE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY_HERE\n-----END PRIVATE KEY-----"
# Google service account private key ID (optional but recommended)
GOOGLE_PRIVATE_KEY_ID="your-private-key-id"
# ===========================================
# WEB PUSH NOTIFICATIONS (VAPID Keys)
# ===========================================
# VAPID public key (exposed to client-side, must start with NEXT_PUBLIC_)
NEXT_PUBLIC_VAPID_PUBLIC_KEY="BJlglqrIZCbPCZyUs8UIzEP1Wi18hzvGaC3-KPLkQuoCV_EOKdyGJNbu7fs5jYaO571ipVAMko8YiwIMa1VjQEg"
# VAPID private key (keep secret, server-side only)
VAPID_PRIVATE_KEY="UHDY8M3-0beVIA2kt2zL3ZeMStJ0j6zVkVd2Cfqpgrc"
# ===========================================
# FILE STORAGE / WEBSOCKET API
# ===========================================
# API key for file operations (upload, delete, copy, view directory)
WS_APIKEY="your-websocket-api-key"
# ===========================================
# APPLICATION SETTINGS
# ===========================================
# Next.js node environment (development, production, test)
NODE_ENV="development"
# Application URL (optional, for reference)
NEXT_PUBLIC_APP_URL="http://localhost:3000"