64a08019931cb3599f295ef1a24659b4c34a64f2
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_services / httpd.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14 m = Map("httpd", "Busybox HTTPd", translate("a_srv_http1"))
15
16 s = m:section(TypedSection, "httpd", "")
17 s.anonymous = true
18 s.addremove = true
19
20 port = s:option(Value, "port", translate("port"))
21 port.isinteger = true
22
23 s:option(Value, "home", translate("a_srv_http_root"))
24
25 config = s:option(Value, "c_file", translate("configfile"), translate("a_srv_http_config1"))
26 config.rmempty = true
27
28 realm = s:option(Value, "realm", translate("a_srv_http_authrealm"), translate("a_srv_http_authrealm1"))
29 realm.rmempty = true
30
31 return m