Files
ospab.host/ospabhost/backend/.env.example
Georgiy Syralev 4690bdf23e .env in repo
2026-01-01 01:26:23 +03:00

71 lines
2.4 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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