mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-10 10:45:57 +03:00
Switch to a single config option for database connection init
The main pro is less config options, while the main con is less clarity in what the defaults are for the various database types.
This commit is contained in:
@@ -520,14 +520,8 @@ make_config! {
|
||||
/// Database connection pool size
|
||||
database_max_conns: u32, false, def, 10;
|
||||
|
||||
/// SQLite connection init |> Statements to run when creating a new SQLite connection
|
||||
sqlite_conn_init: String, false, def, "PRAGMA busy_timeout = 5000; PRAGMA synchronous = NORMAL;".to_string();
|
||||
|
||||
/// MySQL connection init |> Statements to run when creating a new MySQL connection
|
||||
mysql_conn_init: String, false, def, "".to_string();
|
||||
|
||||
/// PostgreSQL connection init |> Statements to run when creating a new PostgreSQL connection
|
||||
postgresql_conn_init: String, false, def, "".to_string();
|
||||
/// Database connection init |> SQL statements to run when creating a new database connection, mainly useful for connection-scoped pragmas. If empty, a database-specific default is used.
|
||||
database_conn_init: String, false, def, "".to_string();
|
||||
|
||||
/// Bypass admin page security (Know the risks!) |> Disables the Admin Token for the admin page so you may use your own auth in-front
|
||||
disable_admin_token: bool, true, def, false;
|
||||
|
Reference in New Issue
Block a user