aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticommon.lua
diff options
context:
space:
mode:
authoronefang2020-01-04 17:26:54 +1000
committeronefang2020-01-04 17:26:54 +1000
commit98fc3b797c49bd18f67bdb39f1c24d0ba40cd76a (patch)
tree20cae0520f98a64c71822a21670808b01301a527 /apt-panopticommon.lua
parentA bit more info in the "not updated yet" WARNING. (diff)
downloadapt-panopticon-98fc3b797c49bd18f67bdb39f1c24d0ba40cd76a.zip
apt-panopticon-98fc3b797c49bd18f67bdb39f1c24d0ba40cd76a.tar.gz
apt-panopticon-98fc3b797c49bd18f67bdb39f1c24d0ba40cd76a.tar.bz2
apt-panopticon-98fc3b797c49bd18f67bdb39f1c24d0ba40cd76a.tar.xz
Add support for using CGI for the PHP graphs.
Diffstat (limited to 'apt-panopticommon.lua')
-rw-r--r--apt-panopticommon.lua9
1 files changed, 9 insertions, 0 deletions
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 =
113-- "Prometheus", 113-- "Prometheus",
114 }, 114 },
115 }, 115 },
116 cgi =
117 {
118 typ = "boolean",
119 help = "",
120 value = false,
121 },
116} 122}
117 123
118APT.args = {} 124APT.args = {}
@@ -149,6 +155,9 @@ APT.parseArgs = function(args)
149 elseif "-r" == a then 155 elseif "-r" == a then
150 APT.redir = true 156 APT.redir = true
151 sendArgs = sendArgs .. a .. " " 157 sendArgs = sendArgs .. a .. " "
158 elseif "--cgi" == a then
159 APT.options.cgi.value = true
160 sendArgs = sendArgs .. a .. " "
152 elseif "--low" == a then 161 elseif "--low" == a then
153 APT.options.bandwidth.value = 0 162 APT.options.bandwidth.value = 0
154 APT.options.timeout.value = 2 163 APT.options.timeout.value = 2