1
0
Fork 0
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:
Daniel García 2019-03-18 22:12:39 +01:00
parent 4689ed7b30
commit 4b40cda910
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
3 changed files with 82 additions and 28 deletions

View file

@ -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.