feat(inbounds): restore "Set Cert from Panel" / Clear buttons in TLS certs

Bring back the per-certificate buttons in the inbound TLS section (File Path
mode): "Set Cert from Panel" fetches the panel's own webCertFile/webKeyFile via
/panel/setting/all and fills the cert's certificateFile/keyFile, warning when no
panel cert is configured; "Clear" empties both paths.

Reuses the existing pages.inbounds.setDefaultCert label and adds a
setDefaultCertEmpty warning string.
This commit is contained in:
MHSanaei
2026-05-28 02:41:39 +02:00
parent 486ac9c28d
commit 9e005ffcf9
2 changed files with 50 additions and 0 deletions
+1
View File
@@ -355,6 +355,7 @@
"IPLimitlogDesc": "The IP history log. (to re-enable the inbound after disabling, clear the log)",
"IPLimitlogclear": "Clear the Log",
"setDefaultCert": "Set Cert from Panel",
"setDefaultCertEmpty": "No certificate is configured for the panel. Set one under Settings first.",
"streamTab": "Stream",
"securityTab": "Security",
"sniffingTab": "Sniffing",