.env in repo
This commit is contained in:
70
ospabhost/backend/.env.example
Normal file
70
ospabhost/backend/.env.example
Normal file
@@ -0,0 +1,70 @@
|
||||
# Database
|
||||
DATABASE_URL=mysql://user:password@localhost:3306/ospabhost
|
||||
JWT_SECRET=your-jwt-secret-key-here
|
||||
PORT=5000
|
||||
|
||||
# Proxmox Configuration
|
||||
PROXMOX_API_URL=https://your-proxmox-host:8006/api2/json
|
||||
PROXMOX_WEB_URL=https://your-proxmox-ip:8006
|
||||
PROXMOX_TOKEN_ID=api-user@pve!token-name
|
||||
PROXMOX_TOKEN_SECRET=your-token-secret-here
|
||||
PROXMOX_NODE=pve
|
||||
PROXMOX_IP=your-proxmox-ip
|
||||
PROXMOX_DISK_TEMPLATE=local
|
||||
|
||||
# Storage pools for VMs disks
|
||||
# ℹ️ Используем 'local' как стандартный storage для LXC контейнеров на Proxmox
|
||||
# Возможные значения: local, local-lvm, nfs-storage и т.д. (зависит от конфигурации Proxmox)
|
||||
PROXMOX_VM_STORAGE=local # Storage для корневой FS контейнеров
|
||||
PROXMOX_BACKUP_STORAGE=local # Storage для бэкапов/снэпшотов
|
||||
PROXMOX_ISO_STORAGE=local # Storage для ISO образов
|
||||
|
||||
# Network configuration
|
||||
# ℹ️ Сетевой мост для подключения контейнеров/VM к сети
|
||||
# Возможные значения: vmbr0, vmbr1, vmbr2 и т.д. (зависит от конфигурации сети в Proxmox)
|
||||
# Проверить доступные мосты: Datacenter → Node → Network
|
||||
PROXMOX_NETWORK_BRIDGE=vmbr0 # Сетевой интерфейс для eth0 контейнеров
|
||||
|
||||
# SMTP (email) server settings
|
||||
SMTP_HOST=your-smtp-host
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=noreply@yourdomain.com
|
||||
SMTP_PASS=your-smtp-password
|
||||
|
||||
# SSH connection settings
|
||||
SSH_HOST=your-proxmox-host
|
||||
SSH_PORT=22
|
||||
SSH_USER=root
|
||||
SSH_PASSWORD=your-ssh-password
|
||||
SSH_PRIVATE_KEY_PATH=
|
||||
|
||||
# Turnstile (Cloudflare Captcha)
|
||||
TURNSTILE_SECRET_KEY=your-turnstile-secret
|
||||
|
||||
# OAuth Providers (optional)
|
||||
GOOGLE_CLIENT_ID=your-google-client-id
|
||||
GOOGLE_CLIENT_SECRET=your-google-client-secret
|
||||
|
||||
GITHUB_CLIENT_ID=your-github-client-id
|
||||
GITHUB_CLIENT_SECRET=your-github-client-secret
|
||||
|
||||
YANDEX_CLIENT_ID=your-yandex-client-id
|
||||
YANDEX_CLIENT_SECRET=your-yandex-client-secret
|
||||
|
||||
# OAuth Callback URL
|
||||
OAUTH_CALLBACK_URL=https://yourdomain.com/api/auth
|
||||
|
||||
# Session Secret
|
||||
SESSION_SECRET=your-session-secret-key
|
||||
|
||||
# Frontend URL
|
||||
FRONTEND_URL=https://yourdomain.com
|
||||
|
||||
# Panel API Integration (optional)
|
||||
PANEL_URL=https://panel.yourdomain.com
|
||||
SSO_SECRET_KEY=your-sso-secret-key
|
||||
OSPAB_PANEL_URL=https://panel.yourdomain.com
|
||||
VPS_SYNC_API_KEY=your-vps-sync-api-key
|
||||
PANEL_API_KEY=your-panel-api-key
|
||||
|
||||
NODE_ENV=development
|
||||
Reference in New Issue
Block a user