--[[ LuCI - Lua Configuration Interface ]]-- local taskd = require "luci.model.tasks" local btcpayserver_model = require "luci.model.btcpayserver" local m, s, o m = taskd.docker_map("btcpayserver", "btcpayserver", "/usr/libexec/apps/btcpayserver/btcpayserver.sh", translate("btcpayserver"), translate("BTCPay Server is a self-hosted, open-source cryptocurrency payment processor. It's secure, private, censorship-resistant and free.") .. translate("Official website:") .. ' hhttps://docs.linuxserver.io/images/docker-btcpayserver/') s = m:section(SimpleSection, translate("Service Status"), translate("btcpayserver status:")) s:append(Template("btcpayserver/status")) s = m:section(TypedSection, "btcpayserver", translate("Setup"), translate("The following parameters will only take effect during installation or upgrade:")) s.addremove=false s.anonymous=true o = s:option(Value, "port", translate("Port").."*") o.rmempty = false o.default = "8888" o.datatype = "port" o = s:option(Value, "image_name", translate("Lightning").."*") o.rmempty = false o.datatype = "string" o:value("clightning", "clightning") o:value("lnd", "lnd") o.default = "clightning" local blocks = btcpayserver_model.blocks() local home = btcpayserver_model.home() o = s:option(Value, "config_path", translate("Network").."*") o.rmempty = false o.datatype = "string" o:value("mainnet", "mainnet") o:value("testnet", "testnet") o.default = "mainnet" local paths, default_path = btcpayserver_model.find_paths(blocks, home, "Configs") for _, val in pairs(paths) do o:value(val, val) end o.default = default_path return m