feat: NextCloud: add the enableImagemagick option

This commit is contained in:
Alan Urmancheev 2024-11-29 16:21:38 +04:00 committed by Inex Code
parent c10e57b19c
commit 5a92ad0621

View file

@ -10,6 +10,7 @@ from selfprivacy_api.services.service import Service, ServiceStatus
from selfprivacy_api.services.nextcloud.icon import NEXTCLOUD_ICON from selfprivacy_api.services.nextcloud.icon import NEXTCLOUD_ICON
from selfprivacy_api.services.config_item import ( from selfprivacy_api.services.config_item import (
StringServiceConfigItem, StringServiceConfigItem,
BoolServiceConfigItem,
ServiceConfigItem, ServiceConfigItem,
) )
from selfprivacy_api.utils.regex_strings import SUBDOMAIN_REGEX from selfprivacy_api.utils.regex_strings import SUBDOMAIN_REGEX
@ -26,6 +27,11 @@ class Nextcloud(Service):
regex=SUBDOMAIN_REGEX, regex=SUBDOMAIN_REGEX,
widget="subdomain", widget="subdomain",
), ),
"enableImagemagick": BoolServiceConfigItem(
id="enableImagemagick",
default_value=True,
description="Enable ImageMagick",
),
} }
@staticmethod @staticmethod