diff options
Diffstat (limited to 'system/services/nginx/default.nix')
-rw-r--r-- | system/services/nginx/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/services/nginx/default.nix b/system/services/nginx/default.nix index 7c2fa55..996996e 100644 --- a/system/services/nginx/default.nix +++ b/system/services/nginx/default.nix @@ -14,7 +14,7 @@ }; mkVirtHost = { domain, - root, + root ? "", url, extraSettings ? {}, }: { @@ -23,20 +23,20 @@ lib.recursiveUpdate { forceSSL = true; enableACME = true; - root = "${root}"; + root = "/etc/nginx/websites/${domain}/${root}"; } extraSettings; }; mkNixSyncRepository = { domain, - root, + root ? "", url, extraSettings ? {}, }: { name = "${domain}"; value = { - path = "${root}"; + path = "/etc/nginx/websites/${domain}/${root}"; uri = "${url}"; inherit extraSettings; }; |