diff options
author | xeji <36407913+xeji@users.noreply.github.com> | 2018-07-10 09:38:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-10 09:38:50 +0200 |
commit | 51d03096516948822faf612e906fcfe629337ad4 (patch) | |
tree | a9e7f2cd174913226cf1ee7c6cd0ac22836e010e /nixos | |
parent | 81c18c1b07f11cddde3e969b0f2dece53c6d2d6b (diff) | |
parent | d06b547cc00932dc836d1876c2ac15aaf62f3940 (diff) |
Merge pull request #38324 from rvl/znc-uri-prefix
znc: add uriPrefix option
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/znc.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/znc.nix b/nixos/modules/services/networking/znc.nix index 76e4899c85ee8..6f477e3b14605 100644 --- a/nixos/modules/services/networking/znc.nix +++ b/nixos/modules/services/networking/znc.nix @@ -36,6 +36,7 @@ let IPv4 = true IPv6 = true SSL = ${boolToString confOpts.useSSL} + ${lib.optionalString (confOpts.uriPrefix != null) "URIPrefix = ${confOpts.uriPrefix}"} </Listener> <User ${confOpts.userName}> @@ -310,6 +311,16 @@ in ''; }; + uriPrefix = mkOption { + type = types.nullOr types.str; + default = null; + example = "/znc/"; + description = '' + An optional URI prefix for the ZNC web interface. Can be + used to make ZNC available behind a reverse proxy. + ''; + }; + extraZncConf = mkOption { default = ""; type = types.lines; |