mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-10 20:40:56 +00:00
- Add Telegram bot (@GenX_FX_bot) for cloud deployment automation - Add web dashboard with deployment status and quick links - Add Exness terminal deployment script - Add dashboard deployment script (Fly.io, Render, GitHub Pages) - Add personal vault for secure credential storage - Update deploy_cloud.py with Fly.io deployment automation - Add GitHub Pages workflow for dashboard auto-deployment - Add bot setup documentation and deployment guides
24 lines
908 B
PowerShell
24 lines
908 B
PowerShell
# Load credentials from personal vault
|
|
# Usage: . .\scripts\load_vault.ps1
|
|
|
|
$vaultPath = Join-Path (Split-Path -Parent $PSScriptRoot) "config\vault.json"
|
|
|
|
if (Test-Path $vaultPath) {
|
|
$vault = Get-Content $vaultPath | ConvertFrom-Json
|
|
|
|
# Load Telegram bot token
|
|
if ($vault.telegram_bot.token) {
|
|
$env:TELEGRAM_BOT_TOKEN = $vault.telegram_bot.token
|
|
Write-Host "✅ Telegram bot token loaded from vault" -ForegroundColor Green
|
|
}
|
|
|
|
# Load allowed user IDs if present
|
|
if ($vault.telegram_bot.allowed_user_ids) {
|
|
$env:TELEGRAM_ALLOWED_USER_IDS = $vault.telegram_bot.allowed_user_ids -join ","
|
|
}
|
|
|
|
Write-Host "✅ Vault loaded successfully" -ForegroundColor Green
|
|
} else {
|
|
Write-Host "⚠️ Vault file not found at: $vaultPath" -ForegroundColor Yellow
|
|
Write-Host " Create config/vault.json with your credentials" -ForegroundColor Yellow
|
|
}
|