Nextcloud: added caddy to nextcloud group so that it can read socket.
This commit is contained in:
parent
f47eb458ee
commit
ade92871e4
1 changed files with 93 additions and 89 deletions
|
|
@ -9,7 +9,9 @@
|
|||
nginxRoot = config.services.nginx.virtualHosts.${host}.root;
|
||||
fpmSocket = config.services.phpfpm.pools.nextcloud.socket;
|
||||
in {
|
||||
services = lib.mkIf server {
|
||||
config = lib.mkIf server {
|
||||
users.groups.nextcloud.members = ["nextcloud" "caddy"];
|
||||
services = {
|
||||
nextcloud = {
|
||||
enable = true;
|
||||
hostName = host;
|
||||
|
|
@ -53,7 +55,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts.${host}.extraConfig = ''
|
||||
nginx.enable = lib.mkForce false;
|
||||
caddy.virtualHosts."${host}".extraConfig = ''
|
||||
encode zstd gzip
|
||||
|
||||
root * ${nginxRoot}
|
||||
|
|
@ -106,4 +109,5 @@ in {
|
|||
file_server
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue