feat(plugin): add HTTP2HTTPS redirect plugin implementation

This commit is contained in:
2026-03-10 18:26:20 +08:00
parent 406ea5ebee
commit 27237542c8
5 changed files with 152 additions and 21 deletions

View File

@@ -370,6 +370,15 @@ localAddr = "127.0.0.1:443"
hostHeaderRewrite = "127.0.0.1"
requestHeaders.set.x-from-where = "frp"
[[proxies]]
name = "plugin_http2https_redirect"
type = "http"
customDomains = ["test.yourdomain.com"]
[proxies.plugin]
type = "http2https_redirect"
# Optional. Defaults to 443. Set this if the HTTPS entry is exposed on a non-standard port.
# httpsPort = 443
[[proxies]]
name = "plugin_http2http"
type = "tcp"