nextcloud: use mkDefault for whole nginx config
This commit is contained in:
parent
ca916e8cb3
commit
128dbb31cc
@ -531,8 +531,9 @@ in {
|
|||||||
|
|
||||||
environment.systemPackages = [ occ ];
|
environment.systemPackages = [ occ ];
|
||||||
|
|
||||||
services.nginx.enable = mkDefault true;
|
services.nginx = mkDefault {
|
||||||
services.nginx.virtualHosts.${cfg.hostName} = {
|
enable = true;
|
||||||
|
virtualHosts.${cfg.hostName} = {
|
||||||
root = cfg.package;
|
root = cfg.package;
|
||||||
locations = {
|
locations = {
|
||||||
"= /robots.txt" = {
|
"= /robots.txt" = {
|
||||||
@ -631,6 +632,7 @@ in {
|
|||||||
''}
|
''}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user