1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-08-27 21:14:47 +00:00

Retry initial db connection, with adjustable option

This commit is contained in:
Daniel García 2020-10-03 22:31:52 +02:00
commit 729c9cff41
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
5 changed files with 49 additions and 12 deletions

View file

@ -347,6 +347,9 @@ make_config! {
/// that do not support WAL. Please make sure you read project wiki on the topic before changing this setting.
enable_db_wal: bool, false, def, true;
/// Max database connection retries |> Number of times to retry the database connection during startup, with 1 second between each retry, set to 0 to retry indefinitely
db_connection_retries: u32, false, def, 15;
/// 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;