1
0
Fork 0

feat:frps添加证书文件夹映射

This commit is contained in:
okxlin 2024-01-10 14:49:31 +08:00
parent 459d41ccb0
commit 19be796c52
8 changed files with 58 additions and 40 deletions

View File

@ -1 +1,2 @@
CONTAINER_NAME="frps"
CONTAINER_NAME="frps"
SSL_FOLDER_PATH="./data/ssl"

View File

@ -1,16 +1,23 @@
additionalProperties:
formFields:
- default: ./data/frps.toml
edit: true
envKey: CONFIG_FILE_PATH
labelEn: Configuration file path
labelZh: 配置文件路径
required: true
type: text
- default: 7000
disabled: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port (determined by the configuration file)
labelZh: 端口 (由配置文件决定)
required: true
type: number
additionalProperties:
formFields:
- default: ./data/frps.toml
edit: true
envKey: CONFIG_FILE_PATH
labelEn: Configuration file path
labelZh: 配置文件路径
required: true
type: text
- default: 7000
disabled: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port (determined by the configuration file)
labelZh: 端口 (由配置文件决定)
required: true
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

@ -20,9 +20,9 @@ kcpBindPort = 7000
# tls
tls.force = false
#transport.tls.certFile = "/etc/frp/server.crt"
#transport.tls.keyFile = "/etc/frp/server.key"
#transport.tls.trustedCaFile = "/etc/frp/ca.crt"
#transport.tls.certFile = "/etc/frp/ssl/server.crt"
#transport.tls.keyFile = "/etc/frp/ssl/server.key"
#transport.tls.trustedCaFile = "/etc/frp/ssl/ca.crt"
# dashboard
webServer.addr = "0.0.0.0"

View File

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

View File

@ -1 +1,2 @@
CONTAINER_NAME="frps"
CONTAINER_NAME="frps"
SSL_FOLDER_PATH="./data/ssl"

View File

@ -1,16 +1,23 @@
additionalProperties:
formFields:
- default: ./data/frps.toml
edit: true
envKey: CONFIG_FILE_PATH
labelEn: Configuration file path
labelZh: 配置文件路径
required: true
type: text
- default: 7000
disabled: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port (determined by the configuration file)
labelZh: 端口 (由配置文件决定)
required: true
type: number
additionalProperties:
formFields:
- default: ./data/frps.toml
edit: true
envKey: CONFIG_FILE_PATH
labelEn: Configuration file path
labelZh: 配置文件路径
required: true
type: text
- default: 7000
disabled: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port (determined by the configuration file)
labelZh: 端口 (由配置文件决定)
required: true
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

@ -20,9 +20,9 @@ kcpBindPort = 7000
# tls
tls.force = false
#transport.tls.certFile = "/etc/frp/server.crt"
#transport.tls.keyFile = "/etc/frp/server.key"
#transport.tls.trustedCaFile = "/etc/frp/ca.crt"
#transport.tls.certFile = "/etc/frp/ssl/server.crt"
#transport.tls.keyFile = "/etc/frp/ssl/server.key"
#transport.tls.trustedCaFile = "/etc/frp/ssl/ca.crt"
# dashboard
webServer.addr = "0.0.0.0"

View File

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