You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+12
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,18 @@ The `options` argument is a Lua table holding the following keys:
205
205
*`max_packet_size`
206
206
207
207
the upper limit for the reply packets sent from the MySQL server (default to 1MB).
208
+
*`ssl`
209
+
210
+
If set to `true`, then uses SSL to connect to MySQL (default to `false`). If the MySQL
211
+
server does not have SSL support
212
+
(or just disabled), the error string "ssl disabled on server" will be returned.
213
+
*`ssl_verify`
214
+
215
+
If set to `true`, then verifies the validity of the server SSL certificate (default to `false`).
216
+
Note that you need to configure the [lua_ssl_trusted_certificate](https://github.com/openresty/lua-nginx-module#lua_ssl_trusted_certificate)
217
+
to specify the CA certificate used by your MySQL server. You may also
218
+
need to configure [lua_ssl_verify_depth](https://github.com/openresty/lua-nginx-module#lua_ssl_verify_depth)
219
+
accordingly.
208
220
*`pool`
209
221
210
222
the name for the MySQL connection pool. if omitted, an ambiguous pool name will be generated automatically with the string template `user:database:host:port` or `user:database:path`. (this option was first introduced in `v0.08`.)
0 commit comments