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