feat: add nextcloud

main
Louis Pearson 2024-01-06 15:45:08 -07:00
parent 254f2db23d
commit 66f08c8bbd
1 changed files with 20 additions and 0 deletions

View File

@ -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