feat(dcrouter): add managed local dcrouter mode with status controls and gateway integration
This commit is contained in:
@@ -2,9 +2,31 @@
|
||||
* Settings data shapes for Onebox
|
||||
*/
|
||||
|
||||
export type TDcRouterMode = 'managed' | 'external' | 'disabled';
|
||||
|
||||
export interface IManagedDcRouterStatus {
|
||||
mode: TDcRouterMode;
|
||||
configured: boolean;
|
||||
running: boolean;
|
||||
healthy: boolean;
|
||||
containerId?: string;
|
||||
image: string;
|
||||
gatewayUrl: string;
|
||||
opsPort: number;
|
||||
httpPort: number;
|
||||
httpsPort: number;
|
||||
message?: string;
|
||||
}
|
||||
|
||||
export interface ISettings {
|
||||
cloudflareToken: string;
|
||||
cloudflareZoneId: string;
|
||||
dcrouterMode: TDcRouterMode;
|
||||
dcrouterManagedImage: string;
|
||||
dcrouterManagedOpsPort: number;
|
||||
dcrouterManagedHttpPort: number;
|
||||
dcrouterManagedHttpsPort: number;
|
||||
dcrouterManagedDataDir: string;
|
||||
dcrouterGatewayUrl: string;
|
||||
dcrouterGatewayApiToken: string;
|
||||
dcrouterGatewayClientId: string;
|
||||
|
||||
Reference in New Issue
Block a user