airsltd's picture
添加 webssh 模块 (ttyd) 及 Caddy 路由配置
08b6464
raw
history blame contribute delete
219 Bytes
#!/bin/sh
set -e
PORT="${WEBSSH_PORT:-8002}"
exec ttyd \
--port "$PORT" \
--interface 127.0.0.1 \
--writable \
--max-clients 10 \
--ping-interval 30 \
--terminal-type xterm-256color \
bash