nginx: Add alias configuration option for hosts and locations.

It's like root, but doesn't keep the prefix.
This commit is contained in:
Evan Danaher
2017-03-09 13:02:29 -05:00
parent 53a2baabbe
commit ff2e2e82cc
3 changed files with 20 additions and 0 deletions

View File

@@ -45,6 +45,15 @@ with lib;
'';
};
alias = mkOption {
type = types.nullOr types.path;
default = null;
example = "/your/alias/directory";
description = ''
Alias directory for requests.
'';
};
extraConfig = mkOption {
type = types.lines;
default = "";