summaryrefslogtreecommitdiffstats
path: root/squid-model.lua
diff options
context:
space:
mode:
authorAndreas Brodmann <andreas.brodmann@gmail.com>2007-11-20 22:41:17 +0000
committerAndreas Brodmann <andreas.brodmann@gmail.com>2007-11-20 22:41:17 +0000
commitd65d428af973665ccd3c3392e2ea8a69b43701f1 (patch)
tree7be7d0ace1068dde26621176a9cb6133ed0eec17 /squid-model.lua
parenta6854b1bc082f83a96c10a2d3adbf0b8fe01231a (diff)
downloadacf-squid-d65d428af973665ccd3c3392e2ea8a69b43701f1.tar.bz2
acf-squid-d65d428af973665ccd3c3392e2ea8a69b43701f1.tar.xz
/acf/squid: save work of day
git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@352 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'squid-model.lua')
-rw-r--r--squid-model.lua25
1 files changed, 23 insertions, 2 deletions
diff --git a/squid-model.lua b/squid-model.lua
index f1fee43..0a56978 100644
--- a/squid-model.lua
+++ b/squid-model.lua
@@ -38,7 +38,7 @@ service_control = function( control )
return retval
end
-get_config = function()
+get_adv_config = function()
local retval = ""
@@ -56,7 +56,7 @@ get_config = function()
return retval
end
-update_config = function( config )
+update_adv_config = function( config )
local retval = "Successfully updated /etc/squid/squid.conf!"
@@ -71,3 +71,24 @@ update_config = function( config )
return retval
end
+get_basic_config = function()
+
+ local config = { proxyip = { value="", type="text", label="Proxy IP" },
+ proxyport = { value="", type="text", label="Proxy Port" },
+ filterip = { value="", type="text", label="Filter IP" },
+ filterport = { value="", type="text", label="Filter Port" },
+ filterregex = { value="", type="text", label="FilterRegex" },
+ safeports = { value="", type="text", label="Safe_ports" },
+ sslports = { value="", type="text", label="SSL_ports" },
+ accesslog = { value="", type="select", label="Access Logs", option={ "yes", "no" } },
+ diskcache = { value="", type="select", label="Disk Cache Parameters", option={ "yes", "no" } },
+ authmethod = { value="", type="select", label="Authentication Method", option={ "digest", "ntlm", "none" } }
+ }
+
+ config.proxyip.value = "192.168.83.129"
+ config.proxyport.value = 8080
+ config.accesslog.value = "yes"
+
+ return config
+end
+