luci/modules/admin-full/luasrc/model/cbi/admin_services/httpd.lua

30 lines
816 B
Lua
Raw Normal View History

--[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
2008-06-09 10:10:29 +00:00
m = Map("httpd", "Busybox HTTPd", translate("a_srv_http1"))
2008-04-11 19:03:30 +00:00
2008-06-06 18:27:59 +00:00
s = m:section(TypedSection, "httpd", "")
2008-04-11 19:03:30 +00:00
s.anonymous = true
2008-06-09 10:10:29 +00:00
port = s:option(Value, "port", translate("port"))
2008-04-11 19:03:30 +00:00
port.isinteger = true
2008-06-09 10:10:29 +00:00
s:option(Value, "home", translate("a_srv_http_root"))
2008-04-11 19:03:30 +00:00
2008-06-09 10:10:29 +00:00
config = s:option(Value, "c_file", translate("configfile"), translate("a_srv_http_config1"))
2008-04-11 19:03:30 +00:00
config.rmempty = true
2008-06-09 10:10:29 +00:00
realm = s:option(Value, "realm", translate("a_srv_http_authrealm"), translate("a_srv_http_authrealm1"))
2008-04-11 19:03:30 +00:00
realm.rmempty = true
return m