diff options
author | Brecht Savelkoul <brecht.savelkoul@alumni.lse.ac.uk> | 2021-08-12 21:08:13 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2021-09-27 07:33:27 +0200 |
commit | 8a585fd5c59bebb04434e2b7d0bfac1123b0a919 (patch) | |
tree | 95a329a8c72474901af92f42ba83fa574b9acc54 /nixos/modules/services/web-servers/lighttpd/default.nix | |
parent | baa04706d7ac4b8c0d6c6d0eab41158176c25d36 (diff) | |
download | nixpkgs-8a585fd5c59bebb04434e2b7d0bfac1123b0a919.tar nixpkgs-8a585fd5c59bebb04434e2b7d0bfac1123b0a919.tar.gz nixpkgs-8a585fd5c59bebb04434e2b7d0bfac1123b0a919.tar.bz2 nixpkgs-8a585fd5c59bebb04434e2b7d0bfac1123b0a919.tar.lz nixpkgs-8a585fd5c59bebb04434e2b7d0bfac1123b0a919.tar.xz nixpkgs-8a585fd5c59bebb04434e2b7d0bfac1123b0a919.tar.zst nixpkgs-8a585fd5c59bebb04434e2b7d0bfac1123b0a919.zip |
nixos/lighttpd: support new authentication modules
Diffstat (limited to 'nixos/modules/services/web-servers/lighttpd/default.nix')
-rw-r--r-- | nixos/modules/services/web-servers/lighttpd/default.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/lighttpd/default.nix b/nixos/modules/services/web-servers/lighttpd/default.nix index 7a691aa7891..05e897c8cc9 100644 --- a/nixos/modules/services/web-servers/lighttpd/default.nix +++ b/nixos/modules/services/web-servers/lighttpd/default.nix @@ -38,10 +38,13 @@ let "mod_rrdtool" "mod_accesslog" # Remaining list of modules, order assumed to be unimportant. + "mod_authn_dbi" "mod_authn_file" "mod_authn_gssapi" "mod_authn_ldap" "mod_authn_mysql" + "mod_authn_pam" + "mod_authn_sasl" "mod_cml" "mod_deflate" "mod_evasive" @@ -132,6 +135,15 @@ in ''; }; + package = mkOption { + default = pkgs.lighttpd; + defaultText = "pkgs.lighttpd"; + type = types.package; + description = '' + lighttpd package to use. + ''; + }; + port = mkOption { default = 80; type = types.port; @@ -240,7 +252,7 @@ in description = "Lighttpd Web Server"; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; - serviceConfig.ExecStart = "${pkgs.lighttpd}/sbin/lighttpd -D -f ${configFile}"; + serviceConfig.ExecStart = "${cfg.package}/sbin/lighttpd -D -f ${configFile}"; # SIGINT => graceful shutdown serviceConfig.KillSignal = "SIGINT"; }; |