From 6b8d6f8bc7d5e135edb0f696f40e5220d71513df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Fri, 9 Sep 2022 02:56:22 +0000 Subject: [PATCH] SETTINGS.webdav_disable_check --- api/ovdashboard_api/dav_common.py | 7 ++++--- api/ovdashboard_api/settings.py | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) 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"