From 08cae3bf675e4fd1f6523c39967badd56626202d Mon Sep 17 00:00:00 2001 From: Martins Sipenko Date: Thu, 24 Oct 2019 11:34:10 +0300 Subject: [PATCH] Document env vars. --- website/docs/index.html.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/index.html.markdown b/website/docs/index.html.markdown index e9232c044..31263ca71 100644 --- a/website/docs/index.html.markdown +++ b/website/docs/index.html.markdown @@ -76,9 +76,9 @@ $ export all_proxy="socks5://your.proxy:3306" The following arguments are supported: -* `endpoint` - (Required) The address of the MySQL server to use. Most often a "hostname:port" pair, but may also be an absolute path to a Unix socket when the host OS is Unix-compatible. -* `username` - (Required) Username to use to authenticate with the server. -* `password` - (Optional) Password for the given user, if that user has a password. -* `tls` - (Optional) The TLS configuration. One of `false`, `true`, or `skip-verify`. Defaults to `false`. +* `endpoint` - (Required) The address of the MySQL server to use. Most often a "hostname:port" pair, but may also be an absolute path to a Unix socket when the host OS is Unix-compatible. Can also be sourced from the `MYSQL_ENDPOINT` environment variable. +* `username` - (Required) Username to use to authenticate with the server, can also be sourced from the `MYSQL_USERNAME` environment variable. +* `password` - (Optional) Password for the given user, if that user has a password, can also be sourced from the `MYSQL_PASSWORD` environment variable. +* `tls` - (Optional) The TLS configuration. One of `false`, `true`, or `skip-verify`. Defaults to `false`. Can also be sourced from the `MYSQL_TLS_CONFIG` environment variable. * `max_conn_lifetime_sec` - (Optional) Sets the maximum amount of time a connection may be reused. If d <= 0, connections are reused forever. * `max_open_conns` - (Optional) Sets the maximum number of open connections to the database. If n <= 0, then there is no limit on the number of open connections.