mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-10 02:35:58 +03:00
Add support for database connection init statements
This is probably mainly useful for running connection-scoped pragma statements.
This commit is contained in:
@@ -515,11 +515,20 @@ make_config! {
|
||||
db_connection_retries: u32, false, def, 15;
|
||||
|
||||
/// Timeout when aquiring database connection
|
||||
database_timeout: u64, false, def, 30;
|
||||
database_timeout: u64, false, def, 30;
|
||||
|
||||
/// 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, "".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();
|
||||
|
||||
/// 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