feat:添加frpc tls设置

This commit is contained in:
okxlin 2024-03-22 16:29:14 +08:00
parent c9cc6a9e2d
commit 9f0b9b21a8
6 changed files with 28 additions and 2 deletions

View File

@ -13,4 +13,11 @@ additionalProperties:
labelEn: Port (determined by the configuration file)
labelZh: 端口 (由配置文件决定)
required: true
type: number
type: number
- default: ./data/ssl
edit: true
envKey: SSL_FOLDER_PATH
labelEn: Certificate folder path (corresponding to "/etc/frp/ssl" in container)
labelZh: 证书文件夹路径 (对应容器内 "/etc/frp/ssl")
required: true
type: text

View File

@ -22,6 +22,11 @@ transport.tls.enable = false
# transport.tls.trustedCaFile = "ca.crt"
# transport.tls.serverName = "example.com"
# tls
#transport.tls.certFile = "/etc/frp/ssl/client.crt"
#transport.tls.keyFile = "/etc/frp/ssl/client.key"
#transport.tls.trustedCaFile = "/etc/frp/ssl/ca.crt"
[[proxies]]
name = "rdp_tcp"
type = "tcp"

View File

@ -7,6 +7,7 @@ services:
volumes:
#- "${CONFIG_FILE_PATH}:/etc/frp/frpc.ini" #截止5.1.3版本使用ini
- "${CONFIG_FILE_PATH}:/etc/frp/frpc.toml"
- "${SSL_FOLDER_PATH}:/etc/frp/ssl"
image: "snowdreamtech/frpc:0.56.0"
labels:
createdBy: "Apps"

View File

@ -13,4 +13,11 @@ additionalProperties:
labelEn: Port (determined by the configuration file)
labelZh: 端口 (由配置文件决定)
required: true
type: number
type: number
- default: ./data/ssl
edit: true
envKey: SSL_FOLDER_PATH
labelEn: Certificate folder path (corresponding to "/etc/frp/ssl" in container)
labelZh: 证书文件夹路径 (对应容器内 "/etc/frp/ssl")
required: true
type: text

View File

@ -22,6 +22,11 @@ transport.tls.enable = false
# transport.tls.trustedCaFile = "ca.crt"
# transport.tls.serverName = "example.com"
# tls
#transport.tls.certFile = "/etc/frp/ssl/client.crt"
#transport.tls.keyFile = "/etc/frp/ssl/client.key"
#transport.tls.trustedCaFile = "/etc/frp/ssl/ca.crt"
[[proxies]]
name = "rdp_tcp"
type = "tcp"

View File

@ -7,6 +7,7 @@ services:
volumes:
#- "${CONFIG_FILE_PATH}:/etc/frp/frpc.ini" #截止5.1.3版本使用ini
- "${CONFIG_FILE_PATH}:/etc/frp/frpc.toml"
- "${SSL_FOLDER_PATH}:/etc/frp/ssl"
image: "snowdreamtech/frpc:latest"
labels:
createdBy: "Apps"