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: docs/content/doc/advanced/config-cheat-sheet.en-us.md
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -215,7 +215,18 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
215
215
-`SCHEMA`: **\<empty\>**: For PostgreSQL only, schema to use if different from "public". The schema must exist beforehand,
216
216
the user must have creation privileges on it, and the user search path must be set to the look into the schema first
217
217
(e.g. `ALTER USER user SET SEARCH_PATH = schema_name,"$user",public;`).
218
-
-`SSL_MODE`: **disable**: For PostgreSQL and MySQL only.
218
+
-`SSL_MODE`: **disable**: SSL/TLS encryption mode for connecting to the database. This option is only applied for PostgreSQL and MySQL.
219
+
- Valid values for MySQL:
220
+
-`true`: Enable TLS with verification of the database server certificate against its root certificate. When selecting this option make sure that the root certificate required to validate the database server certificate (e.g. the CA certificate) is on the system certificate store of both the database and Gitea servers. See your system documentation for instructions on how to add a CA certificate to the certificate store.
221
+
-`false`: Disable TLS.
222
+
-`disable`: Alias for `false`, for compatibility with PostgreSQL.
223
+
-`skip-verify`: Enable TLS without database server certificate verification. Use this option if you have self-signed or invalid certificate on the database server.
224
+
-`prefer`: Enable TLS with fallback to non-TLS connection.
225
+
- Valid values for PostgreSQL:
226
+
-`disable`: Disable TLS.
227
+
-`require`: Enable TLS without any verifications.
228
+
-`verify-ca`: Enable TLS with verification of the database server certificate against its root certificate.
229
+
-`verify-full`: Enable TLS and verify the database server name matches the given certificate in either the `Common Name` or `Subject Alternative Name` fields.
219
230
-`CHARSET`: **utf8**: For MySQL only, either "utf8" or "utf8mb4", default is "utf8". NOTICE: for "utf8mb4" you must use MySQL InnoDB > 5.6. Gitea is unable to check this.
220
231
-`PATH`: **data/gitea.db**: For SQLite3 only, the database file path.
0 commit comments