summaryrefslogtreecommitdiffstats
path: root/squid-model.lua
diff options
context:
space:
mode:
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
+