VvvebJs / .env.example
CatPtain's picture
Upload 7 files
0c4efc3 verified
# VvvebJs Environment Configuration Template
# Copy this file and configure your values in Hugging Face Space Settings
# Authentication - REQUIRED
USER_1_NAME=admin
USER_1_PASSWORD=your_secure_password
# Optional additional users (increment number for more users)
USER_2_NAME=editor
USER_2_PASSWORD=another_password
# Storage Configuration
STORAGE_TYPE=github
# Options: 'github', 'kv', 'both'
# GitHub Storage - RECOMMENDED
GITHUB_TOKEN=ghp_your_github_personal_access_token
GITHUB_OWNER=your_github_username
GITHUB_REPO=your_repository_name
GITHUB_BRANCH=main
GITHUB_PATH=pages/
# πŸ”„ NEW: GitHub User Management
# With these GitHub settings configured, the system will:
# 1. Store user registration data in: github.com/YOUR_OWNER/YOUR_REPO/system/users.json
# 2. Load fresh user data from GitHub on every login
# 3. Sync user data across multiple deployment instances
# 4. Support user registration, login, password changes
# 5. Maintain backward compatibility with environment variable users
# EdgeOne KV Storage - OPTIONAL
EDGEONE_KV_API_KEY=your_tencent_api_key
EDGEONE_KV_SECRET_KEY=your_tencent_secret_key
EDGEONE_KV_ZONE_ID=your_zone_id
EDGEONE_KV_NAMESPACE=vvvebjs
EDGEONE_KV_ENDPOINT=https://edgeone.tencentcloudapi.com
# GitHub User Management Benefits:
# βœ… Real-time data sync between instances
# βœ… User data never lost (stored in Git)
# βœ… Support for user registration and login
# βœ… Encrypted password storage
# βœ… Automatic user session management