feat: 将 7681 纳入 Webterm YAML 部署

This commit is contained in:
Codex
2026-07-11 08:02:15 +02:00
parent f52186dbe0
commit dc7aa0af16
+81
View File
@@ -33,6 +33,87 @@ defaults:
targetId: local-7683
targets:
- id: local-7681
enabled: true
runtime:
mode: host-docker
workDir: /root/webterm
composePath: /root/webterm/build/docker-compose.7681.yaml
composeProject: webterm-7681
serviceName: web-terminal
containerName: web-terminal
image: webterm-web-terminal-7681:latest
envFile: /root/webterm/.env
hostPort: 7681
containerPort: 7681
privileged: true
pid: host
sourceMounts:
- source: /root/webterm/src
target: /app/src
readOnly: true
- source: /root/webterm/public
target: /app/public
readOnly: true
- source: /root/webterm/scripts/host-shell.sh
target: /usr/local/bin/host-shell
readOnly: true
- source: /root/user_uploads
target: /root/user_uploads
readOnly: false
autoStartSessions:
- title: TERM
cwd: /root/unidesk
command: mycx resume 019f4eeb-bbb3-7e32-bb98-d10753561516
cols: 100
rows: 30
resumePrompt: true
fallbackShell: true
environment:
HOST: 0.0.0.0
PORT: "7681"
SESSION_COOKIE_NAME: webterm_session_7681
SESSION_MAX_AGE_SECONDS: "604800"
SERVER_PROVIDER_ID: remote-server
SERVER_PROVIDER_NAME: Remote Server
TERMINAL_SHELL: /usr/local/bin/host-shell
TERMINAL_CWD: /root
TERMINAL_REMOTE_CWD: /root/unidesk
TERMINAL_START_COMMAND: ""
TERMINAL_HISTORY_BYTES: "2097152"
TERMINAL_SNAPSHOT_BYTES: "0"
TERMINAL_SNAPSHOT_POLICY: tail
BROWSER_SNAPSHOT_WRITE_CHUNK_BYTES: "8192"
BROWSER_MANUAL_REDRAW_MODE: double
BROWSER_MANUAL_REDRAW_DELAY_MS: "60"
OUTPUT_BATCH_MS: "8"
OUTPUT_BATCH_BYTES: "32768"
BROWSER_KEEPALIVE_ENABLED: "true"
BROWSER_RESUME_PROBE_ENABLED: "false"
BROWSER_KEEPALIVE_INTERVAL_MS: "30000"
BROWSER_STALE_TIMEOUT_MS: "180000"
BROWSER_SESSION_OUTPUT_IDLE_MS: "3000"
BROWSER_OUTPUT_PULSE_MIN_INTERVAL_MS: "250"
PROTOCOL_METRICS_ENABLED: "true"
PROTOCOL_METRICS_WINDOW: "400"
FILE_UPLOAD_DIR: /root/user_uploads
FILE_UPLOAD_MAX_BYTES: "104857600"
publicExposure:
enabled: false
publicBaseUrl: https://term.pikapython.com
dns:
hostname: term.pikapython.com
expectedA: 82.156.23.220
resolvers: [1.1.1.1, 8.8.8.8, 223.5.5.5, 114.114.114.114]
upstream:
host: 152.53.229.148
port: 7681
pk01:
route: PK01
caddyConfigPath: /etc/caddy/Caddyfile
caddyServiceName: caddy
responseHeaderTimeoutSeconds: 600
- id: local-7682
enabled: true
runtime: