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)
46 lines
1.2 KiB
Django/Jinja
46 lines
1.2 KiB
Django/Jinja
# Generated by frps-manager for client: {{ client.name }}
|
|
# Copy to your frpc host (e.g. /etc/frpc.toml), then:
|
|
# systemctl enable --now frpc # if you used the example systemd unit
|
|
# # OR directly:
|
|
# frpc -c /etc/frpc.toml
|
|
#
|
|
# IMPORTANT:
|
|
# * serverAddr / serverPort / auth.token come from your admin — do not change
|
|
# unless the admin told you to.
|
|
# * All clients use the SAME shared token; frpc identifies itself via `user`.
|
|
# * Append your own [[proxies]] blocks below this line to expose local services.
|
|
|
|
serverAddr = "{{ server_addr }}"
|
|
serverPort = {{ bind_port }}
|
|
|
|
[auth]
|
|
method = "token"
|
|
token = "{{ server_token }}"
|
|
|
|
# Optional transport defaults (uncomment if you want them)
|
|
# transport.useEncryption = true
|
|
# transport.useCompression = true
|
|
|
|
[webServer]
|
|
addr = "127.0.0.1"
|
|
port = 7400
|
|
user = "admin"
|
|
password = "admin"
|
|
|
|
# ---------------------------------------------------------------
|
|
# Add your proxies below. Examples:
|
|
#
|
|
# [[proxies]]
|
|
# name = "ssh"
|
|
# type = "tcp"
|
|
# localIP = "127.0.0.1"
|
|
# localPort = 22
|
|
# remotePort = 6000
|
|
#
|
|
# [[proxies]]
|
|
# name = "web"
|
|
# type = "http"
|
|
# localIP = "127.0.0.1"
|
|
# localPort = 8080
|
|
# customDomains = ["your.domain.example.com"]
|
|
# --------------------------------------------------------------- |