Fixing documentation about the prayer module, and adding a port setting,

defaulting to something other than 80 at least.


svn path=/nixos/trunk/; revision=30363
This commit is contained in:
Lluís Batlle i Rossell 2011-11-09 21:08:50 +00:00
parent de5eedb612
commit d9356e9a35

View file

@ -6,6 +6,8 @@ let
inherit (pkgs) prayer;
cfg = config.services.prayer;
stateDir = "/var/lib/prayer";
prayerUser = "prayer";
@ -18,7 +20,9 @@ let
prayer_group = "${prayerGroup}"
sendmail_path = "/var/setuid-wrappers/sendmail"
${config.services.prayer.extraConfig}
use_http_port ${cfg.port}
${cfg.extraConfig}
'';
prayerCfg = pkgs.runCommand "prayer.cf" { } ''
@ -38,21 +42,14 @@ in
enable = mkOption {
default = false;
description = ''
Whether to run the machine as a HTTP proxy server.
Whether to run the prayer webmail http server.
'';
};
listenAddress = mkOption {
default = "127.0.0.1:8118";
port = mkOption {
default = "2080";
description = ''
Address the proxy server is listening to.
'';
};
logDir = mkOption {
default = "/var/log/prayer" ;
description = ''
Location for prayer log files.
Port the prayer http server is listening to.
'';
};