From 66f08c8bbd1e59aee6082b46d5d8c4955dbab15b Mon Sep 17 00:00:00 2001 From: Louis Pearson Date: Sat, 6 Jan 2024 15:45:08 -0700 Subject: [PATCH] feat: add nextcloud --- configuration.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/configuration.nix b/configuration.nix index c9534ec..6936a9d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -188,6 +188,22 @@ timerConfig.RandomizedDelaySec = "15m"; }; + # Next cloud setup + services.nginx.enable = false; + services.nextcloud = { + enable = true; + # hostName = "nextcloud.samsehu.perli.casa"; + hostName = "localhost"; + database.createLocally = true; + config = { + dbtype = "sqlite"; + }; + }; + services.phpfpm.pools.nextcloud.settings = { + "listen.owner" = config.services.caddy.user; + "listen.group" = config.services.caddy.group; + }; + # Reverse proxy with Caddy services.caddy = { enable = true; @@ -216,6 +232,10 @@ virtualHosts."jellyfin.samsehu.perli.casa".extraConfig = '' reverse_proxy localhost:8096 ''; + + virtualHosts."nextcloud.samsehu.perli.casa".extraConfig = '' + reverse_proxy unix//${config.services.phpfpm.pools.nextcloud.socket}|fcgi://localhost/ + ''; }; # Headscale for access to the network while away from home