summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-pagekitec/luasrc/model/cbi/pagekitec.lua
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2018-05-01 10:01:50 +0300
committerGitHub <noreply@github.com>2018-05-01 10:01:50 +0300
commitdcfc4569c483f4218cf41b26ef0f4dfed0441c55 (patch)
treebfbef1d9b78cc26c52b201718ff3770283748c62 /applications/luci-app-pagekitec/luasrc/model/cbi/pagekitec.lua
parent27dd9d75f9e920150353db85cb126f2c83e89140 (diff)
parentcc00b01c270ff48897a279cfc507e3dc758a2d30 (diff)
Merge pull request #1690 from karlp/pagekite
luci-app-pagekitec: new package
Diffstat (limited to 'applications/luci-app-pagekitec/luasrc/model/cbi/pagekitec.lua')
-rw-r--r--applications/luci-app-pagekitec/luasrc/model/cbi/pagekitec.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/applications/luci-app-pagekitec/luasrc/model/cbi/pagekitec.lua b/applications/luci-app-pagekitec/luasrc/model/cbi/pagekitec.lua
new file mode 100644
index 0000000000..1abd3f79d5
--- /dev/null
+++ b/applications/luci-app-pagekitec/luasrc/model/cbi/pagekitec.lua
@@ -0,0 +1,26 @@
+m = Map("pagekitec", translate("PageKite"),
+ translate([[
+<p/>Note: you need a working PageKite account, or at least, your own running front end for this form to work.
+Visit <a href="https://pagekite.net/home/">your account</a> to set up a name for your
+router and get a secret key for the connection.
+<p/><em>Note: this web configurator only supports
+some very very basic uses of pagekite.</em>
+]]))
+
+s = m:section(TypedSection, "pagekitec", translate("PageKite"))
+s.anonymous = true
+
+p = s:option(Value, "kitename", translate("Kite Name"))
+p = s:option(Value, "kitesecret", translate("Kite Secret"))
+p.password = true
+p = s:option(Flag, "static", translate("Static Setup"),
+ translate([[Static setup, disable FE failover and DDNS updates, set this if you are running your
+ own frontend without a pagekite.me account]]))
+
+p = s:option(Flag, "simple_http", translate("Basic HTTP"),
+ translate([[Enable a tunnel to the local HTTP server (in most cases, this admin
+site)]]))
+p = s:option(Flag, "simple_ssh", translate("Basic SSH"),
+ translate([[Enable a tunnel to the local SSH server]]))
+
+return m