mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-09 23:34:26 +00:00
Add index_file
to .gotty`
This commit is contained in:
parent
eb2f2d08bc
commit
a4a3f1a01d
7
.gotty
7
.gotty
@ -28,7 +28,10 @@
|
|||||||
// tls_crt_file = "~/.gotty.crt"
|
// tls_crt_file = "~/.gotty.crt"
|
||||||
|
|
||||||
// [string] Default TLS key file path
|
// [string] Default TLS key file path
|
||||||
// tls_key_file = "~/.gotty.key"
|
// tls_key_file = "~/.gotty.key"
|
||||||
|
|
||||||
|
// [string] Custom index.html file
|
||||||
|
// index_file = ""
|
||||||
|
|
||||||
// [string] Title format of browser window
|
// [string] Title format of browser window
|
||||||
// Available variables are:
|
// Available variables are:
|
||||||
@ -48,6 +51,8 @@
|
|||||||
// [bool] Accept only one client and exit gotty once the client exits
|
// [bool] Accept only one client and exit gotty once the client exits
|
||||||
// once = false
|
// once = false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// [object] Client terminal (hterm) preferences
|
// [object] Client terminal (hterm) preferences
|
||||||
// Examples below are some of commonly used options.
|
// Examples below are some of commonly used options.
|
||||||
// See hterm's documentation for the complete list of preferences.
|
// See hterm's documentation for the complete list of preferences.
|
||||||
|
2
main.go
2
main.go
@ -28,7 +28,7 @@ func main() {
|
|||||||
flag{"tls", "t", "Enable TLS/SSL"},
|
flag{"tls", "t", "Enable TLS/SSL"},
|
||||||
flag{"tls-crt", "", "TLS/SSL crt file path"},
|
flag{"tls-crt", "", "TLS/SSL crt file path"},
|
||||||
flag{"tls-key", "", "TLS/SSL key file path"},
|
flag{"tls-key", "", "TLS/SSL key file path"},
|
||||||
flag{"index", "", "Custom index file"},
|
flag{"index", "", "Custom index.html file"},
|
||||||
flag{"title-format", "", "Title format of browser window"},
|
flag{"title-format", "", "Title format of browser window"},
|
||||||
flag{"reconnect", "", "Enable reconnection"},
|
flag{"reconnect", "", "Enable reconnection"},
|
||||||
flag{"reconnect-time", "", "Time to reconnect"},
|
flag{"reconnect-time", "", "Time to reconnect"},
|
||||||
|
Loading…
Reference in New Issue
Block a user