Update to 1.3.0

This commit is contained in:
Shuanglei Tao
2017-02-18 09:51:40 +08:00
parent 11d982cd0f
commit 44989b3a30

View File

@@ -61,27 +61,32 @@ USAGE:
ttyd [options] <command> [<arguments...>]
VERSION:
1.2.2
1.3.0
OPTIONS:
--port, -p Port to listen (default: 7681, use `0` for random port)
--interface, -i Network interface to bind
--interface, -i Network interface to bind (eg: eth0), or UNIX domain socket path (eg: /var/run/ttyd.sock)
--credential, -c Credential for Basic Authentication (format: username:password)
--uid, -u User id to run with
--gid, -g Group id to run with
--signal, -s Signal to send to the command when exit it (default: SIGHUP)
--signal-list Print a list of supported signals
--reconnect, -r Time to reconnect for the client in seconds (default: 10)
--readonly, -R Do not allow clients to write to the TTY
--client-option, -t Send option to client (format: key=value), repeat to add more options
--check-origin, -O Do not allow websocket connection from different origin
--once, -o Accept only one client and exit on disconnection
--browser, -B Open terminal with the default system browser
--index, -I Custom index.html path
--ssl, -S Enable SSL
--ssl-cert, -C SSL certificate file path
--ssl-key, -K SSL key file path
--ssl-ca, -A SSL CA file path for client certificate verification
--debug, -d Set log level (0-9, default: 7)
--debug, -d Set log level (default: 7)
--version, -v Print the version and exit
--help, -h Print this text and exit
Visit https://github.com/tsl0922/ttyd to get more information and report bugs.
</code></pre>
<h2>Example Usage</h2>
<p>ttyd starts web server at port <code>7681</code> by default, you can use the <code>-p</code> option to change it, the <code>command</code> will be started with <code>arguments</code> as options. For example, run:</p>