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