# Server PORT=3000 NODE_ENV=development PUBLIC_URL=http://localhost:3000 BILLING_RETURN_URL_RELATIVE=/billing/view # CORS Configuration # Use * for all origins (default) or specify comma-separated list # Examples: # CORS_ORIGIN=* # CORS_ORIGIN=http://localhost:3000 # CORS_ORIGIN=http://localhost:3000,https://app.com CORS_ORIGIN=* # Database MONGODB_URI=mongodb://localhost:27017/myappdb # JWT Secrets (change these in production!) JWT_ACCESS_SECRET=your-access-secret-change-me JWT_REFRESH_SECRET=your-refresh-secret-change-me # Stripe STRIPE_SECRET_KEY=sk_test_... STRIPE_WEBHOOK_SECRET=whsec_... # Admin Basic Auth ADMIN_USERNAME=admin ADMIN_PASSWORD=change-me-in-production # Internal Cron Basic Auth (for internal APIs) INTERNAL_CRON_USERNAME=admin INTERNAL_CRON_PASSWORD=change-me-in-production # Alternative Basic Auth variables (fallbacks) BASIC_AUTH_USERNAME=admin BASIC_AUTH_PASSWORD=change-me-in-production BASIC_AUTH_USER=admin BASIC_AUTH_PASS=change-me-in-production # Emailing RESEND_API_KEY= # File Storage (filesystem fallback) UPLOAD_DIR=uploads MAX_FILE_SIZE=10485760 MAX_FILE_SIZE_HARD_CAP=10485760 # Multer file size limit in bytes (used by Express middleware) (multer ceiling) #MULTER_FILE_SIZE_LIMIT=10485760 # S3 / MinIO (optional - enables S3 backend when all are set) # S3_ENDPOINT=http://localhost:9000 # S3_REGION=us-east-1 # S3_ACCESS_KEY_ID=minioadmin # S3_SECRET_ACCESS_KEY=minioadmin # S3_BUCKET=superbackend # Legacy fallback: S3_BUCKET=saasbackend # S3_FORCE_PATH_STYLE=true # Encryption key for encrypted settings (new preferred name) # SUPERBACKEND_ENCRYPTION_KEY=your-32-byte-encryption-key # Legacy fallback: SAASBACKEND_ENCRYPTION_KEY=your-32-byte-encryption-key # Console Manager # Set to 'false' to disable console manager initialization # When disabled, console methods are not overridden and no console entries are tracked # CONSOLE_MANAGER_ENABLED=true # Admin Dashboard # Maximum number of tabs allowed in the admin dashboard (default: 5) ADMIN_MAX_TABS=5 # GitHub OAuth (optional - for GitHub authentication) # Get these from: https://github.com/settings/developers # GITHUB_CLIENT_ID=your-github-client-id # GITHUB_CLIENT_SECRET=your-github-client-secret # GITHUB_CALLBACK_URL=http://localhost:3000/api/auth/github/callback # Frontend URL for OAuth redirect after login # FRONTEND_URL=http://localhost:3000