fix tls cert not exist issue

This commit is contained in:
杨黄林
2023-09-17 11:56:37 +08:00
parent 6d787693dc
commit 8b574adfe6
4 changed files with 9 additions and 7 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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 {

View File

@@ -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"