feat: add nextcloud
parent
254f2db23d
commit
66f08c8bbd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue