Retry initial db connection, with adjustable option

This commit is contained in:
Daniel García
2020-10-03 22:31:52 +02:00
parent 22b9c80007
commit 729c9cff41
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;