feat:frps添加证书文件夹映射
This commit is contained in:
parent
6b18ccdfe8
commit
00a363b249
|
|
@ -1 +1,2 @@
|
||||||
CONTAINER_NAME="frps"
|
CONTAINER_NAME="frps"
|
||||||
|
SSL_FOLDER_PATH="./data/ssl"
|
||||||
|
|
@ -14,3 +14,10 @@ additionalProperties:
|
||||||
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
|
||||||
|
|
@ -20,9 +20,9 @@ kcpBindPort = 7000
|
||||||
|
|
||||||
# tls
|
# tls
|
||||||
tls.force = false
|
tls.force = false
|
||||||
#transport.tls.certFile = "/etc/frp/server.crt"
|
#transport.tls.certFile = "/etc/frp/ssl/server.crt"
|
||||||
#transport.tls.keyFile = "/etc/frp/server.key"
|
#transport.tls.keyFile = "/etc/frp/ssl/server.key"
|
||||||
#transport.tls.trustedCaFile = "/etc/frp/ca.crt"
|
#transport.tls.trustedCaFile = "/etc/frp/ssl/ca.crt"
|
||||||
|
|
||||||
# dashboard
|
# dashboard
|
||||||
webServer.addr = "0.0.0.0"
|
webServer.addr = "0.0.0.0"
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
#- "${CONFIG_FILE_PATH}:/etc/frp/frps.ini" #截止5.1.3版本使用ini
|
#- "${CONFIG_FILE_PATH}:/etc/frp/frps.ini" #截止5.1.3版本使用ini
|
||||||
- "${CONFIG_FILE_PATH}:/etc/frp/frps.toml"
|
- "${CONFIG_FILE_PATH}:/etc/frp/frps.toml"
|
||||||
|
- "${SSL_FOLDER_PATH}:/etc/frp/ssl"
|
||||||
image: "snowdreamtech/frps:0.53.2"
|
image: "snowdreamtech/frps:0.53.2"
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
CONTAINER_NAME="frps"
|
CONTAINER_NAME="frps"
|
||||||
|
SSL_FOLDER_PATH="./data/ssl"
|
||||||
|
|
@ -14,3 +14,10 @@ additionalProperties:
|
||||||
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
|
||||||
|
|
@ -20,9 +20,9 @@ kcpBindPort = 7000
|
||||||
|
|
||||||
# tls
|
# tls
|
||||||
tls.force = false
|
tls.force = false
|
||||||
#transport.tls.certFile = "/etc/frp/server.crt"
|
#transport.tls.certFile = "/etc/frp/ssl/server.crt"
|
||||||
#transport.tls.keyFile = "/etc/frp/server.key"
|
#transport.tls.keyFile = "/etc/frp/ssl/server.key"
|
||||||
#transport.tls.trustedCaFile = "/etc/frp/ca.crt"
|
#transport.tls.trustedCaFile = "/etc/frp/ssl/ca.crt"
|
||||||
|
|
||||||
# dashboard
|
# dashboard
|
||||||
webServer.addr = "0.0.0.0"
|
webServer.addr = "0.0.0.0"
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
#- "${CONFIG_FILE_PATH}:/etc/frp/frps.ini" #截止5.1.3版本使用ini
|
#- "${CONFIG_FILE_PATH}:/etc/frp/frps.ini" #截止5.1.3版本使用ini
|
||||||
- "${CONFIG_FILE_PATH}:/etc/frp/frps.toml"
|
- "${CONFIG_FILE_PATH}:/etc/frp/frps.toml"
|
||||||
|
- "${SSL_FOLDER_PATH}:/etc/frp/ssl"
|
||||||
image: "snowdreamtech/frps:latest"
|
image: "snowdreamtech/frps:latest"
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue