Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
haoqu.ma
/
gotty
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a4a3f1a0
authored
Aug 30, 2015
by
Iwasaki Yudai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `index_file` to .gotty`
1 parent
eb2f2d08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
.gotty
main.go
.gotty
View file @
a4a3f1a
...
...
@@ -28,7 +28,10 @@
// tls_crt_file = "~/.gotty.crt"
// [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
// Available variables are:
...
...
@@ -48,6 +51,8 @@
// [bool] Accept only one client and exit gotty once the client exits
// once = false
// [object] Client terminal (hterm) preferences
// Examples below are some of commonly used options.
// See hterm's documentation for the complete list of preferences.
...
...
main.go
View file @
a4a3f1a
...
...
@@ -28,7 +28,7 @@ func main() {
flag
{
"tls"
,
"t"
,
"Enable TLS/SSL"
},
flag
{
"tls-crt"
,
""
,
"TLS/SSL crt 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
{
"reconnect"
,
""
,
"Enable reconnection"
},
flag
{
"reconnect-time"
,
""
,
"Time to reconnect"
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment