71214524f4
- Multi-tenant client/proxy management with Flask+SQLite - Frps server control (start/restart/token rotation) - Generate frpc.ini with shared server token + admin API - Dashboard API integration (live client/proxy status) - RBAC: admin/tenant_admin/user roles - Audit logging for all operations - Systemd service files included - Requires legacy INI format (frp 0.70 TOML auth broken)
11 lines
295 B
Python
11 lines
295 B
Python
#!/usr/bin/env python3
|
|
"""Initialize the frps-manager database."""
|
|
import os
|
|
import sys
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
from app import app, db, seed_admin
|
|
|
|
with app.app_context():
|
|
db.create_all()
|
|
seed_admin()
|
|
print("Database initialized successfully") |