diff --git a/README.md b/README.md index c0e48c6..af9fb02 100644 --- a/README.md +++ b/README.md @@ -51,8 +51,8 @@ admin_keep_time = 0 # enable tls tls_mode = false -# tls_cert_file = cert.crt -# tls_key_file = cert.key +# tls_cert_file = "cert.crt" +# tls_key_file = "cert.key" # frp dashboard info dashboard_addr = "127.0.0.1" diff --git a/README_zh.md b/README_zh.md index 85b06b1..b4d7fe3 100644 --- a/README_zh.md +++ b/README_zh.md @@ -52,8 +52,8 @@ admin_keep_time = 0 # enable tls tls_mode = false -# tls_cert_file = cert.crt -# tls_key_file = cert.key +# tls_cert_file = "cert.crt" +# tls_key_file = "cert.key" # frp dashboard info dashboard_addr = "127.0.0.1" diff --git a/cmd/frps-panel/cmd.go b/cmd/frps-panel/cmd.go index 04b9d8d..d5b7e95 100644 --- a/cmd/frps-panel/cmd.go +++ b/cmd/frps-panel/cmd.go @@ -92,6 +92,8 @@ func parseConfigFile(configFile, tokensFile string) (controller.HandleController tls := server.TLS{ Enable: common.Common.TlsMode, Protocol: "HTTP", + Cert: common.Common.TlsCertFile, + Key: common.Common.TlsKeyFile, } if tls.Enable { diff --git a/config/frps-panel.toml b/config/frps-panel.toml index a4e3c3b..04502c9 100644 --- a/config/frps-panel.toml +++ b/config/frps-panel.toml @@ -9,9 +9,9 @@ plugin_port = 7200 admin_keep_time = 0 # enable tls -tls_mode = false -# tls_cert_file = cert.crt -# tls_key_file = cert.key +tls_mode = true +tls_cert_file = "cert.crt" +tls_key_file = "cert.key" # frp dashboard info dashboard_addr = "127.0.0.1"