Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

1.2 KB
Raw Blame
export interface ManagedDomainConfig {
  publicOrigin: string;
  hostTemplate: string;
  localOrigin: string;
  zoneId: string;
  zoneName: string;
  accountId: string;
  tunnelId: string;
  user: string;
  connection: string;
  autoProvision: boolean;
  routeMode?: "remote" | "mso-gateway";
}

export type ManagedDomainPhase = "pending" | "dns-ready" | "route-ready" | "ready" | "blocked";

export interface ManagedDomainRecord {
  appId: string;
  hostname: string;
  phase: ManagedDomainPhase;
  dnsRecordId?: string;
  dnsAction?: "created" | "updated" | "unchanged";
  routeAction?: "created" | "unchanged";
  error?: string;
  verifiedAt?: number;
  updatedAt: number;
}

export interface ManagedDomainState {
  version: 1;
  revision: number;
  ownerId: string;
  config: ManagedDomainConfig | null;
  apps: Record<string, ManagedDomainRecord>;
}

export interface ManagedDomainRoute {
  hostname: string;
  hostTemplate?: string;
  cockpitHostname: string;
  localOrigin: string;
  zoneId: string;
  zoneName: string;
  accountId: string;
  tunnelId: string;
  ownerTag: string;
  routeMode?: "remote" | "mso-gateway";
}

export interface ManagedDomainDnsResult {
  id: string;
  action: "created" | "updated" | "unchanged";
}