- tmux-web-attach.sh: attach browser to one window via link-window into a private temp session (no session-group pollution); window-size smallest while attached so the browser never gets cut off; mouse on for natural wheel/touch scrolling; status bar off; destroy-unattached cleanup - start-ttyd.sh: ttyd on 127.0.0.1:7681, base path /term, url-arg enabled, Tokyo Night theme, system mono stack, fontSize 14 - systemd user unit + install script registration - nginx: /term/ proxied with websocket upgrade, gated by auth_request to the kanban cookie check; unauthenticated -> 302 /login Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
21 lines
951 B
Bash
Executable File
21 lines
951 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
USER_UNIT_DIR="${HOME}/.config/systemd/user"
|
|
|
|
mkdir -p "${USER_UNIT_DIR}"
|
|
install -m 0644 "${ROOT_DIR}/deploy/systemd/local-kanban.service" "${USER_UNIT_DIR}/local-kanban.service"
|
|
install -m 0644 "${ROOT_DIR}/deploy/systemd/local-kanban-nginx-8443.service" "${USER_UNIT_DIR}/local-kanban-nginx-8443.service"
|
|
install -m 0644 "${ROOT_DIR}/deploy/systemd/local-kanban-ttyd.service" "${USER_UNIT_DIR}/local-kanban-ttyd.service"
|
|
|
|
systemctl --user daemon-reload
|
|
systemctl --user enable --now local-kanban.service
|
|
systemctl --user enable --now local-kanban-nginx-8443.service
|
|
systemctl --user enable --now local-kanban-ttyd.service
|
|
|
|
echo "Local Kanban is managed by user systemd:"
|
|
echo " systemctl --user status local-kanban.service"
|
|
echo " systemctl --user status local-kanban-nginx-8443.service"
|
|
echo " systemctl --user status local-kanban-ttyd.service"
|