Add frontend app with terminal UI, sandbox integration, and asset handling.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
91049379f7
commit
b841c2d1f6
19 files changed
+800
-13
No files matched your search
@@ -2,6 +2,7 @@ export type BackendConfig = {
|
||||
host: string;
|
||||
port: number;
|
||||
spawnerSocket: string;
|
||||
frontendDir: string;
|
||||
/** Exact origins allowed to open terminal sessions. Empty allows every origin. */
|
||||
allowedOrigins: string[];
|
||||
sessionSeconds: number;
|
||||
@@ -21,6 +22,7 @@ export function loadConfig(env: NodeJS.ProcessEnv): BackendConfig
|
||||
host: env.HOST ?? '0.0.0.0',
|
||||
port: integer(env, 'PORT', 8080),
|
||||
spawnerSocket: env.SPAWNER_SOCKET ?? '/run/spawner/spawner.sock',
|
||||
frontendDir: env.FRONTEND_DIR ?? '/app/public',
|
||||
allowedOrigins: (env.ALLOWED_ORIGINS ?? '').split(',').map((origin) => origin.trim()).filter(Boolean),
|
||||
sessionSeconds: integer(env, 'SESSION_SECONDS', 20 * 60),
|
||||
outputRate: integer(env, 'OUTPUT_BYTES_PER_SECOND', 1024 * 1024),
|
||||
|
||||
Reference in new issue
Block a user