30 lines
737 B
Desktop File
30 lines
737 B
Desktop File
[Unit]
|
|
Description=ttyd web terminal (kitty.sethpc.xyz)
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=rdp
|
|
Group=rdp
|
|
|
|
ExecStartPre=/bin/bash -c "/usr/bin/tmux kill-session -t kitty 2>/dev/null; sleep 0.5; /usr/bin/tmux new-session -d -s kitty -x 120 -y 40"
|
|
ExecStart=/usr/local/bin/ttyd \
|
|
--port 7681 \
|
|
--interface 0.0.0.0 \
|
|
--index /opt/ttyd/index-with-toolbar.html \
|
|
--writable \
|
|
--check-origin \
|
|
--max-clients 5 \
|
|
--ping-interval 30 \
|
|
--client-option titleFixed=sethpc.xyz \
|
|
--client-option fontSize=18 \
|
|
--client-option fontFamily=monospace \
|
|
--client-option enableSixel=true \
|
|
/usr/bin/tmux attach-session -t kitty
|
|
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|