From 90926e2eeecbb1051c88ec03471b8cb3a97f778a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Wed, 13 Oct 2021 15:29:12 +0100 Subject: [PATCH] nextcloud: Give nginx access to the nextcloud root --- configuration/services/nextcloud.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configuration/services/nextcloud.nix b/configuration/services/nextcloud.nix index f8a0f08..d4a7fe5 100644 --- a/configuration/services/nextcloud.nix +++ b/configuration/services/nextcloud.nix @@ -11,6 +11,7 @@ image = "nextcloud:fpm-alpine"; dependsOn = [ "postgres" ]; volumes = [ + "nextcloud-root:/var/www/html" "nextcloud-apps:/var/www/html/custom_apps" "nextcloud-config:/var/www/html/config" "nextcloud-data:/var/www/html/data" @@ -34,8 +35,10 @@ nginx = { image = "nginx:alpine"; dependsOn = [ "nextcloud" ]; - volumes = - [ "${./configs/nginx-nextcloud.conf}:/etc/nginx/nginx.conf:ro" ]; + volumes = [ + "nextcloud-root:/var/www/html:ro" + "${./configs/nginx-nextcloud.conf}:/etc/nginx/nginx.conf:ro" + ]; extraOptions = [ "--volumes-from=nextcloud-nextcloud" ]; };