diff --git a/app.py b/app.py index 15a642a..1a6cf89 100644 --- a/app.py +++ b/app.py @@ -337,14 +337,17 @@ def _write_webdav_conf(shares): f'# BEGIN {_WEBDAV_MARK} {s["name"]}\n', f'Alias /dav/{s["name"]} {s["path"]}\n', f'\n', + ' Options Indexes\n', + ' AllowOverride None\n', + ' Require all granted\n', + '\n', + f'\n', ' DAV On\n', ' AuthType Basic\n', ' AuthName "MicroNAS WebDAV"\n', f' AuthUserFile {WEBDAV_PASSWD}\n', f' {require}\n', - ' Options Indexes\n', - ' AllowOverride None\n', - '\n', + '\n', f'# END {_WEBDAV_MARK} {s["name"]}\n\n', ] with open(WEBDAV_CONF, 'w') as f: