summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/nginx.nix
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-10-19 20:42:18 +0200
committertv <tv@shackspace.de>2015-10-19 20:42:18 +0200
commitdc52c4b988ba1e64bf91567f06b89586ca92fa47 (patch)
tree062c9f5bb6c2dafe7fd357ceb77ee6df46b024b4 /krebs/3modules/nginx.nix
parent222ca361e38b09ddef563abaaacd114ec86e2a5c (diff)
nginx service: replace port by listen
Diffstat (limited to 'krebs/3modules/nginx.nix')
-rw-r--r--krebs/3modules/nginx.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/krebs/3modules/nginx.nix b/krebs/3modules/nginx.nix
index 65f3b238e..c5f38c271 100644
--- a/krebs/3modules/nginx.nix
+++ b/krebs/3modules/nginx.nix
@@ -24,9 +24,9 @@ let
"${config.networking.hostName}.retiolum"
];
};
- port = mkOption {
- type = with types; int;
- default = 80;
+ listen = mkOption {
+ type = with types; str;
+ default = "80";
};
locations = mkOption {
type = with types; listOf (attrsOf str);
@@ -68,9 +68,9 @@ let
}
'';
- to-server = { server-names, port, locations, extraConfig, ... }: ''
+ to-server = { server-names, listen, locations, extraConfig, ... }: ''
server {
- listen ${toString port};
+ listen ${listen};
server_name ${toString server-names};
${extraConfig}
${indent (concatStrings (map to-location locations))}