From 98fc3b797c49bd18f67bdb39f1c24d0ba40cd76a Mon Sep 17 00:00:00 2001 From: onefang Date: Sat, 4 Jan 2020 17:26:54 +1000 Subject: Add support for using CGI for the PHP graphs. --- apt-panopticommon.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apt-panopticommon.lua') diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua index dddcc9c..4a1a5e7 100644 --- a/apt-panopticommon.lua +++ b/apt-panopticommon.lua @@ -113,6 +113,12 @@ APT.options = -- "Prometheus", }, }, + cgi = + { + typ = "boolean", + help = "", + value = false, + }, } APT.args = {} @@ -149,6 +155,9 @@ APT.parseArgs = function(args) elseif "-r" == a then APT.redir = true sendArgs = sendArgs .. a .. " " + elseif "--cgi" == a then + APT.options.cgi.value = true + sendArgs = sendArgs .. a .. " " elseif "--low" == a then APT.options.bandwidth.value = 0 APT.options.timeout.value = 2 -- cgit v1.1