Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveKeys ¶ added in v1.0.1
RemoveKeys removes all lines matching the given keys from the config file.
Types ¶
type Config ¶
type Config struct {
PrefixKey byte // prefix key byte (default: 0x1d = Ctrl-])
Shell string // shell to spawn (default: $SHELL or /bin/sh)
ScrollbackLines int // VT scrollback lines (default: 10000)
MaxSessions int // max concurrent sessions (default: 64)
Mouse bool // enable mouse support (default: true)
// Rendering
RenderCoalesceMs int // render coalesce delay in ms (default: 2)
// Network defaults
SSHAddr string // default SSH listen address (default: :2222)
WebAddr string // default web listen address (default: :7680)
// Server mode
Persistent bool // keep running even when all sessions/clients disconnect
// Relay
RelayHost string // API server host (default: unixshells.com)
RelayNode string // QUIC relay hostname (regional, e.g. us.unixshells.com)
RelayUser string // relay account username
RelayDevice string // device name (default: OS hostname)
RelayEnabled bool // whether relay is enabled
RelayCAFile string // CA certificate file for relay TLS verification
APIEnabled bool // whether API access (send/screen) is enabled
}
Config holds all configurable latch settings.
Click to show internal directories.
Click to hide internal directories.