mirror of
https://github.com/yhl452493373/frps-panel.git
synced 2026-04-04 06:16:59 +08:00
fix tls cert not exist issue
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user