mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-30 23:43:56 +00:00
Added domain blacklist regex for icons service and improved valid domain check.
Reorganized the icons code a bit.
This commit is contained in:
parent
4689ed7b30
commit
4b40cda910
3 changed files with 82 additions and 28 deletions
|
@ -259,6 +259,9 @@ make_config! {
|
|||
icon_cache_negttl: u64, true, def, 259_200;
|
||||
/// Icon download timeout |> Number of seconds when to stop attempting to download an icon.
|
||||
icon_download_timeout: u64, true, def, 10;
|
||||
/// Icon blacklist Regex |> Any domains or IPs that match this regex won't be fetched by the icon service.
|
||||
/// Useful to hide other servers in the local network. Check the WIKI for more details
|
||||
icon_blacklist_regex: String, true, option;
|
||||
|
||||
/// Disable Two-Factor remember |> Enabling this would force the users to use a second factor to login every time.
|
||||
/// Note that the checkbox would still be present, but ignored.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue