From 35bfe86bda9fd095bd284658223ac2b08e03c380 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 7 Aug 2024 15:35:45 -0700 Subject: [PATCH] apache: Enable dav and dav_fs modules - DAV can simplify hosting the Feather Wiki app. - It can also potentially be used to share folders over HTTP to clients such a GNOME/KDE file mangers. - Enabling the modules by default should have few disadvantages other than slight increase in memory. It needs to be enabled with 'DAV on' directive on the specific directories. Tests: - Running the service after patch run apache setup and the modules are enabled. Signed-off-by: Sunil Mohan Adapa --- plinth/modules/apache/__init__.py | 2 +- plinth/modules/apache/privileged.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/plinth/modules/apache/__init__.py b/plinth/modules/apache/__init__.py index ba8bd67af..628f7fc7b 100644 --- a/plinth/modules/apache/__init__.py +++ b/plinth/modules/apache/__init__.py @@ -22,7 +22,7 @@ class ApacheApp(app_module.App): app_id = 'apache' - _version = 12 + _version = 13 def __init__(self) -> None: """Create components for the app.""" diff --git a/plinth/modules/apache/privileged.py b/plinth/modules/apache/privileged.py index 812df5c1f..b3e07b761 100644 --- a/plinth/modules/apache/privileged.py +++ b/plinth/modules/apache/privileged.py @@ -129,6 +129,11 @@ def setup(old_version: int): # enable users to share files uploaded to ~/public_html webserver.enable('userdir', kind='module') + # enable WebDAV protocol. Used by feather wiki and potentially by other + # apps and file sharing. + webserver.enable('dav', kind='module') + webserver.enable('dav_fs', kind='module') + # setup freedombox site webserver.enable('freedombox', kind='config') webserver.enable('freedombox-tls', kind='config')