krebs.nginx: default locations = []
This commit is contained in:
parent
411aec6bf9
commit
d38853027e
@ -34,6 +34,7 @@ let
|
|||||||
};
|
};
|
||||||
locations = mkOption {
|
locations = mkOption {
|
||||||
type = with types; listOf (attrsOf str);
|
type = with types; listOf (attrsOf str);
|
||||||
|
default = [];
|
||||||
};
|
};
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = with types; string;
|
type = with types; string;
|
||||||
@ -76,8 +77,8 @@ let
|
|||||||
server {
|
server {
|
||||||
${concatMapStringsSep "\n" (x: "listen ${x};") listen}
|
${concatMapStringsSep "\n" (x: "listen ${x};") listen}
|
||||||
server_name ${toString server-names};
|
server_name ${toString server-names};
|
||||||
${extraConfig}
|
${indent extraConfig}
|
||||||
${indent (concatStrings (map to-location locations))}
|
${indent (concatMapStrings to-location locations)}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user