fix: use owner-level unidesk state
This commit is contained in:
@@ -36,7 +36,7 @@ import { k8sKubeconfig, nativeK3sCtrAddress, nativeK3sImage, nativeK3sInstallVer
|
||||
|
||||
export function syncDevFrontendAuthScript(config: UniDeskConfig): string {
|
||||
const sshClientToken = composeRuntimeEnvValue("UNIDESK_SSH_CLIENT_TOKEN");
|
||||
if (sshClientToken === null) throw new Error("UNIDESK_SSH_CLIENT_TOKEN must be present in .state/docker-compose.env before deploying dev frontend");
|
||||
if (sshClientToken === null) throw new Error(`UNIDESK_SSH_CLIENT_TOKEN must be present in ${rootPath(".state", "docker-compose.env")} before deploying dev frontend`);
|
||||
const sshClientRouteAllowlist = composeRuntimeEnvValue("UNIDESK_SSH_CLIENT_ROUTE_ALLOWLIST") ?? "G14,G14:*,D601,D601:*";
|
||||
const data = {
|
||||
AUTH_USERNAME: Buffer.from(config.auth.username, "utf8").toString("base64"),
|
||||
|
||||
Reference in New Issue
Block a user