1
0
Fork 0

feat:添加frpc tls设置

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

View File

@ -13,4 +13,11 @@ additionalProperties:
labelEn: Port (determined by the configuration file) labelEn: Port (determined by the configuration file)
labelZh: 端口 (由配置文件决定) labelZh: 端口 (由配置文件决定)
required: true 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.trustedCaFile = "ca.crt"
# transport.tls.serverName = "example.com" # 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]] [[proxies]]
name = "rdp_tcp" name = "rdp_tcp"
type = "tcp" type = "tcp"

View File

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

View File

@ -13,4 +13,11 @@ additionalProperties:
labelEn: Port (determined by the configuration file) labelEn: Port (determined by the configuration file)
labelZh: 端口 (由配置文件决定) labelZh: 端口 (由配置文件决定)
required: true 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.trustedCaFile = "ca.crt"
# transport.tls.serverName = "example.com" # 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]] [[proxies]]
name = "rdp_tcp" name = "rdp_tcp"
type = "tcp" type = "tcp"

View File

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