znc: add uriPrefix option
Allows the ZNC web interface to be hosted behind a reverse proxy as a subdirectory. https://wiki.znc.in/Reverse_Proxy#As_subdirectory
This commit is contained in:
parent
56fb68dcef
commit
d06b547cc0
@ -36,6 +36,7 @@ let
|
|||||||
IPv4 = true
|
IPv4 = true
|
||||||
IPv6 = true
|
IPv6 = true
|
||||||
SSL = ${boolToString confOpts.useSSL}
|
SSL = ${boolToString confOpts.useSSL}
|
||||||
|
${lib.optionalString (confOpts.uriPrefix != null) "URIPrefix = ${confOpts.uriPrefix}"}
|
||||||
</Listener>
|
</Listener>
|
||||||
|
|
||||||
<User ${confOpts.userName}>
|
<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 {
|
extraZncConf = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
|
Loading…
Reference in New Issue
Block a user