diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 1af1e86..30f6e35 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -9,6 +9,7 @@ } nextcloud.t-gstone.de { + encode zstd gzip reverse_proxy nextcloud:80 header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" diff --git a/nextcloud/hooks/post-installation.sh b/nextcloud/hooks/post-installation.sh index 0705174..cd29d51 100755 --- a/nextcloud/hooks/post-installation.sh +++ b/nextcloud/hooks/post-installation.sh @@ -13,4 +13,9 @@ php occ db:add-missing-indices echo "==> Post-installation: running MIME type migrations..." php occ maintenance:repair --include-expensive +echo "==> Post-installation: configuring Redis caching and file locking..." +php occ config:system:set memcache.local --value="\\OC\\Memcache\\APCu" +php occ config:system:set memcache.distributed --value="\\OC\\Memcache\\Redis" +php occ config:system:set memcache.locking --value="\\OC\\Memcache\\Redis" + echo "==> Post-installation: done."