mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
smokeping: Allow full override of imgurl + cgiurl
This commit is contained in:
parent
663048f378
commit
b5703eaa80
@ -16,11 +16,11 @@ let
|
|||||||
${lib.optionalString (cfg.mailHost != "") "mailhost = ${cfg.mailHost}"}
|
${lib.optionalString (cfg.mailHost != "") "mailhost = ${cfg.mailHost}"}
|
||||||
${lib.optionalString (cfg.sendmail != null) "sendmail = ${cfg.sendmail}"}
|
${lib.optionalString (cfg.sendmail != null) "sendmail = ${cfg.sendmail}"}
|
||||||
imgcache = ${smokepingHome}/cache
|
imgcache = ${smokepingHome}/cache
|
||||||
imgurl = http://${cfg.hostName}:${builtins.toString cfg.port}/cache
|
imgurl = ${cfg.imgUrl}
|
||||||
datadir = ${smokepingHome}/data
|
datadir = ${smokepingHome}/data
|
||||||
pagedir = ${smokepingHome}/cache
|
pagedir = ${smokepingHome}/cache
|
||||||
piddir = ${smokepingPidDir}
|
piddir = ${smokepingPidDir}
|
||||||
cgiurl = http://${cfg.hostName}:${builtins.toString cfg.port}/smokeping.cgi
|
cgiurl = ${cfg.cgiUrl}
|
||||||
linkstyle = ${cfg.linkStyle}
|
linkstyle = ${cfg.linkStyle}
|
||||||
smokemail = ${cfg.smokeMailTemplate}
|
smokemail = ${cfg.smokeMailTemplate}
|
||||||
*** Presentation ***
|
*** Presentation ***
|
||||||
@ -101,6 +101,18 @@ in
|
|||||||
example = "somewhere.example.com";
|
example = "somewhere.example.com";
|
||||||
description = "DNS name for the urls generated in the cgi.";
|
description = "DNS name for the urls generated in the cgi.";
|
||||||
};
|
};
|
||||||
|
cgiUrl = mkOption {
|
||||||
|
type = types.string;
|
||||||
|
default = "http://${cfg.hostName}:${builtins.toString cfg.port}/smokeping.cgi";
|
||||||
|
example = "https://somewhere.example.com/smokeping.cgi";
|
||||||
|
description = "URL to the smokeping cgi.";
|
||||||
|
};
|
||||||
|
imgUrl = mkOption {
|
||||||
|
type = types.string;
|
||||||
|
default = "http://${cfg.hostName}:${builtins.toString cfg.port}/cache";
|
||||||
|
example = "https://somewhere.example.com/cache";
|
||||||
|
description = "Base url for images generated in the cgi.";
|
||||||
|
};
|
||||||
linkStyle = mkOption {
|
linkStyle = mkOption {
|
||||||
type = types.enum ["original" "absolute" "relative"];
|
type = types.enum ["original" "absolute" "relative"];
|
||||||
default = "relative";
|
default = "relative";
|
||||||
|
Loading…
Reference in New Issue
Block a user