Selaa lähdekoodia

modules: readme files regenerated - db_mysql ... [skip ci]

Kamailio Dev 1 vuosi sitten
vanhempi
commit
a61bfe9fb8
1 muutettua tiedostoa jossa 25 lisäystä ja 6 poistoa
  1. 25 6
      src/modules/db_mysql/README

+ 25 - 6
src/modules/db_mysql/README

@@ -32,6 +32,7 @@ Daniel-Constantin Mierla
               3.5. insert_delayed (integer)
               3.5. insert_delayed (integer)
               3.6. update_affected_found (integer)
               3.6. update_affected_found (integer)
               3.7. opt_ssl_mode (integer)
               3.7. opt_ssl_mode (integer)
+              3.8. opt_ssl_ca (integer)
 
 
         4. Functions
         4. Functions
         5. Installation
         5. Installation
@@ -46,9 +47,10 @@ Daniel-Constantin Mierla
    1.5. Set insert_delayed parameter
    1.5. Set insert_delayed parameter
    1.6. Set update_affected_found parameter
    1.6. Set update_affected_found parameter
    1.7. Set opt_ssl_mode parameter
    1.7. Set opt_ssl_mode parameter
-   1.8. Set a my.cnf group in db_url parameter
-   1.9. Adding a kamailio group to my.cnf
-   1.10. Using [client] and specific group
+   1.8. Set opt_ssl_ca parameter
+   1.9. Set a my.cnf group in db_url parameter
+   1.10. Adding a kamailio group to my.cnf
+   1.11. Using [client] and specific group
 
 
 Chapter 1. Admin Guide
 Chapter 1. Admin Guide
 
 
@@ -69,6 +71,7 @@ Chapter 1. Admin Guide
         3.5. insert_delayed (integer)
         3.5. insert_delayed (integer)
         3.6. update_affected_found (integer)
         3.6. update_affected_found (integer)
         3.7. opt_ssl_mode (integer)
         3.7. opt_ssl_mode (integer)
+        3.8. opt_ssl_ca (integer)
 
 
    4. Functions
    4. Functions
    5. Installation
    5. Installation
@@ -107,6 +110,7 @@ Chapter 1. Admin Guide
    3.5. insert_delayed (integer)
    3.5. insert_delayed (integer)
    3.6. update_affected_found (integer)
    3.6. update_affected_found (integer)
    3.7. opt_ssl_mode (integer)
    3.7. opt_ssl_mode (integer)
+   3.8. opt_ssl_ca (integer)
 
 
 3.1. ping_interval (integer)
 3.1. ping_interval (integer)
 
 
@@ -212,6 +216,21 @@ modparam("db_mysql", "update_affected_found", 1)
 modparam("db_mysql", "opt_ssl_mode", 1)
 modparam("db_mysql", "opt_ssl_mode", 1)
 ...
 ...
 
 
+3.8. opt_ssl_ca (integer)
+
+   Configures the CA certs used to verify the MySQL server cert when SSL
+   is enabled.
+
+   Required when opt_ssl_mode = 4 or 5 and db_mysql is built with
+   libmysqlclient.
+
+   Default value is NULL (NULL - not configured).
+
+   Example 1.8. Set opt_ssl_ca parameter
+...
+modparam("db_mysql", "opt_ssl_ca", "/etc/ssl/certs/mysql-ca.pem")
+...
+
 4. Functions
 4. Functions
 
 
    No function exported to be used from configuration file.
    No function exported to be used from configuration file.
@@ -238,12 +257,12 @@ modparam("db_mysql", "opt_ssl_mode", 1)
      * mysql://user:pass@[group]/db
      * mysql://user:pass@[group]/db
      * mysql://[group]/db
      * mysql://[group]/db
 
 
-   Example 1.8. Set a my.cnf group in db_url parameter
+   Example 1.9. Set a my.cnf group in db_url parameter
 ...
 ...
 modparam("usrloc", "db_url", "mysql://[kamailio]/kamailio)
 modparam("usrloc", "db_url", "mysql://[kamailio]/kamailio)
 ...
 ...
 
 
-   Example 1.9. Adding a kamailio group to my.cnf
+   Example 1.10. Adding a kamailio group to my.cnf
 ...
 ...
 [kamailio]
 [kamailio]
 socket = /path/to/mysql.sock
 socket = /path/to/mysql.sock
@@ -257,7 +276,7 @@ default-character-set = utf8
    both your specific group and the client group, then the value is taken
    both your specific group and the client group, then the value is taken
    from the last one.
    from the last one.
 
 
-   Example 1.10. Using [client] and specific group
+   Example 1.11. Using [client] and specific group
 ...
 ...
 [client]
 [client]
 socket = /run/mysql/mysqld.sock
 socket = /run/mysql/mysqld.sock