Merge pull request #1818 from dibdot/lxc_fix
[project/luci.git] / applications / luci-app-pagekitec / luasrc / model / cbi / pagekitec.lua
1 m = Map("pagekitec", translate("PageKite"),
2     translate([[
3 <p/>Note: you need a working PageKite account, or at least, your own running front end for this form to work.
4 Visit <a href="https://pagekite.net/home/">your account</a> to set up a name for your
5 router and get a secret key for the connection.
6 <p/><em>Note: this web configurator only supports
7 some very very basic uses of pagekite.</em>
8 ]]))
9
10 s = m:section(TypedSection, "pagekitec", translate("PageKite"))
11 s.anonymous = true
12
13 p = s:option(Value, "kitename", translate("Kite Name"))
14 p = s:option(Value, "kitesecret", translate("Kite Secret"))
15 p.password = true
16 p = s:option(Flag, "static", translate("Static Setup"),
17         translate([[Static setup, disable FE failover and DDNS updates, set this if you are running your
18         own frontend without a pagekite.me account]]))
19
20 p = s:option(Flag, "simple_http", translate("Basic HTTP"),
21     translate([[Enable a tunnel to the local HTTP server (in most cases, this admin
22 site)]]))
23 p = s:option(Flag, "simple_ssh", translate("Basic SSH"),
24     translate([[Enable a tunnel to the local SSH server]]))
25
26 return m