disable thumbnail service when web prevents previews

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2023-06-22 15:44:15 +02:00
parent 5c7b15eaeb
commit b3fd53d5a3
4 changed files with 34 additions and 24 deletions
+4
View File
@@ -433,6 +433,10 @@ func (s *Service) generateRunSet(cfg *ociscfg.Config) {
delete(runset, name)
}
// disable thumbnail service
if cfg.WebDAV.DisablePreviews || cfg.Web.Web.Config.Options.DisablePreviews {
delete(runset, "thumbnails")
}
}
// List running processes for the Service Controller.