op-packages/.github/diy/patches/caddy.patch
2026-07-26 21:14:06 +08:00

24 lines
1007 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- a/luci-app-caddy/Makefile
+++ b/luci-app-caddy/Makefile
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-caddy
LUCI_TITLE:=LuCI support for caddy
-LUCI_DEPENDS:=
+LUCI_DEPENDS:=+caddy
PKG_VERSION:=1.0
PKG_RELEASE:=1
--- a/luci-app-caddy/luasrc/model/cbi/caddy/caddy.lua
+++ b/luci-app-caddy/luasrc/model/cbi/caddy/caddy.lua
@@ -69,7 +69,7 @@ o:depends("log", "1")
o = s:option(Value, "bin_dir", translate("程序路径"),
translate("caddy二进制的存放路径,填写完整的路径及caddy名称<br>例如:/usr/bin/caddy &nbsp;&nbsp;&nbsp; 例如:/tmp/caddy<br>可自行编译对应架构的二进制程序:<a href='https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=6006472&highlight=caddy' target='_blank'>编译教程</a>"))
o.datatype = "string"
-o.placeholder = "/usr/bin/caddy"
+o.default = "/usr/bin/caddy"
o = s:option(Value, "data_dir", translate("指向路径"),
translate("指向一个路径可在web界面访问你的文件默认为 /mnt"))