mirror of https://github.com/wg-easy/wg-easy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
800 B
45 lines
800 B
import type { SessionConfig } from 'h3';
|
|
import type {
|
|
Url,
|
|
IpTables,
|
|
Lang,
|
|
Port,
|
|
Prometheus,
|
|
SessionTimeOut,
|
|
TrafficStats,
|
|
Version,
|
|
WGConfig,
|
|
WGInterface,
|
|
} from '../types';
|
|
|
|
/**
|
|
* Representing the WireGuard network configuration data structure of a computer interface system.
|
|
*/
|
|
export type System = {
|
|
interface: WGInterface;
|
|
|
|
release: Version;
|
|
port: number;
|
|
webuiHost: string;
|
|
// maxAge
|
|
sessionTimeout: SessionTimeOut;
|
|
lang: Lang;
|
|
|
|
userConfig: WGConfig;
|
|
|
|
wgPath: string;
|
|
wgDevice: string;
|
|
wgHost: Url;
|
|
wgPort: Port;
|
|
wgConfigPort: Port;
|
|
|
|
iptables: IpTables;
|
|
trafficStats: TrafficStats;
|
|
|
|
wgEnableExpiresTime: boolean;
|
|
wgEnableOneTimeLinks: boolean;
|
|
wgEnableSortClients: boolean;
|
|
|
|
prometheus: Prometheus;
|
|
sessionConfig: SessionConfig;
|
|
};
|
|
|