Globally reduce copyright headers
[project/luci.git] / applications / luci-app-udpxy / luasrc / model / cbi / udpxy.lua
1 -- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com>
2 -- Licensed to the public under the Apache License 2.0.
3
4 m = Map("udpxy", "udpxy", translate("udpxy is a UDP-to-HTTP multicast traffic relay daemon, here you can configure the settings."))
5
6 s = m:section(TypedSection, "udpxy", "")
7 s.addremove = true
8 s.anonymous = false
9
10 enable=s:option(Flag, "disabled", translate("Enabled"))
11 enable.enabled="0"
12 enable.disabled="1"
13 enable.default = "1"
14 enable.rmempty = false
15 respawn=s:option(Flag, "respawn", translate("Respawn"))
16 respawn.default = false
17
18 verbose=s:option(Flag, "verbose", translate("Verbose"))
19 verbose.default = false
20
21 status=s:option(Flag, "status", translate("Status"))
22
23 bind=s:option(Value, "bind", translate("Bind IP/Interface"))
24 bind.rmempty = true
25 bind.datatype = "or(ipaddr, network)"
26
27 port=s:option(Value, "port", translate("Port"))
28 port.rmempty = true
29 port.datatype = "port"
30
31 source=s:option(Value, "source", translate("Source IP/Interface"))
32 source.rmempty = true
33 source.datatype = "or(ipaddr, network)"
34
35 max_clients=s:option(Value, "max_clients", translate("Max clients"))
36 max_clients.rmempty = true
37 max_clients.datatype = "range(1, 5000)"
38
39 log_file=s:option(Value, "log_file", translate("Log file"))
40 log_file.rmempty = true
41 --log_file.datatype = "file"
42
43 buffer_size=s:option(Value, "buffer_size", translate("Buffer size"))
44 buffer_size.rmempty = true
45 buffer_size.datatype = "range(4096,2097152)"
46
47 buffer_messages=s:option(Value, "buffer_messages", translate("Buffer messages"))
48 buffer_messages.rmempty = true
49 buffer_messages.datatype = "or(-1, and(min(1), uinteger))"
50
51 buffer_time=s:option(Value, "buffer_time", translate("Buffer time"))
52 buffer_time.rmempty = true
53 buffer_time.datatype = "or(-1, and(min(1), uinteger))"
54
55 nice_increment=s:option(Value, "nice_increment", translate("Nice increment"))
56 nice_increment.rmempty = true
57 nice_increment.datatype = "or(and(max(-1), integer),and(min(1), integer))"
58
59 mcsub_renew=s:option(Value, "mcsub_renew", translate("Multicast subscription renew"))
60 mcsub_renew.rmempty = true
61 mcsub_renew.datatype = "or(0, range(30, 64000))"
62
63 return m