diff --git a/api/ovdashboard_api/dav_common.py b/api/ovdashboard_api/dav_common.py index c401436..db96631 100644 --- a/api/ovdashboard_api/dav_common.py +++ b/api/ovdashboard_api/dav_common.py @@ -16,9 +16,10 @@ from .async_helpers import run_in_executor from .settings import SETTINGS _WEBDAV_CLIENT = WebDAVclient({ - "webdav_hostname": SETTINGS.webdav.url, - "webdav_login": SETTINGS.webdav.username, - "webdav_password": SETTINGS.webdav.password, + "webdav_hostname": SETTINGS.webdav.url, + "webdav_login": SETTINGS.webdav.username, + "webdav_password": SETTINGS.webdav.password, + "disable_check": SETTINGS.webdav_disable_check, }) _logger = getLogger(__name__) diff --git a/api/ovdashboard_api/settings.py b/api/ovdashboard_api/settings.py index 292ffcc..426c7b7 100644 --- a/api/ovdashboard_api/settings.py +++ b/api/ovdashboard_api/settings.py @@ -64,6 +64,7 @@ class Settings(BaseSettings): redoc_url: Optional[str] = None if production_mode else "/redoc" webdav: DavSettings = DavSettings() + webdav_disable_check: bool = False webdav_retries: int = 20 webdav_prefix: str = "/ovdashboard" config_path: str = "config.txt"