feat(relay): Add relay mode configuration and update related schemas

This commit is contained in:
web@ppanel
2024-12-30 17:28:24 +07:00
parent c44ad47f3c
commit 3cc94773ef
32 changed files with 346 additions and 111 deletions
+13 -3
View File
@@ -140,6 +140,12 @@ declare namespace API {
node_push_interval: number;
};
type NodeRelay = {
host: string;
port: number;
prefix: string;
};
type NodeStatus = {
online_users: OnlineUser[];
status: ServerStatus;
@@ -216,6 +222,11 @@ declare namespace API {
ip_register_limit_duration: number;
};
type RelayConfig = {
dispatch_mode: string;
relay_nodes: NodeRelay[];
};
type ResetPasswordRequest = {
email: string;
password: string;
@@ -256,9 +267,8 @@ declare namespace API {
id: number;
name: string;
server_addr: string;
enable_relay: boolean;
relay_host: string;
relay_port: number;
relay_mode: string;
relay_node: NodeRelay[];
speed_limit: number;
traffic_ratio: number;
group_id: number;