feat: frpc script => scripts

This commit is contained in:
zhengkunwang223 2023-10-19 15:19:39 +08:00
parent a22a8af4d5
commit e47d274f59
3 changed files with 4 additions and 1 deletions

View File

@ -12,12 +12,14 @@ additionalProperties:
labelZh: 服务端端口
required: true
type: number
rule: paramPort
- default: 7400
envKey: PANEL_APP_PORT_HTTP
labelEn: Dashboard Port
labelZh: Dashboard 端口
required: true
type: number
rule: paramPort
- default: admin
envKey: USER_NAME
labelEn: Dashboard Username

View File

@ -4,7 +4,6 @@ source ./.env
sed -i "s/serverAddr = \".*\"/serverAddr = \"${SERVER_ADDRESS}\"/" ./data/frpc.toml
sed -i "s/serverPort = .*$/serverPort = ${SERVER_PORT}/" ./data/frpc.toml
sed -i "s/webServer\.addr = \".*\"/webServer.addr = \"${SERVER_ADDRESS}\"/" ./data/frpc.toml
sed -i "s/webServer\.port = .*$/webServer.port = ${PANEL_APP_PORT_HTTP}/" ./data/frpc.toml
sed -i "s/webServer\.user = \".*\"/webServer.user = \"${USER_NAME}\"/" ./data/frpc.toml
sed -i "s/webServer\.password = \".*\"/webServer.password = \"${PASSWORD}\"/" ./data/frpc.toml

View File

@ -6,12 +6,14 @@ additionalProperties:
labelZh: 服务端口
required: true
type: number
rule: paramPort
- default: 7500
envKey: PANEL_APP_PORT_HTTP
labelEn: Dashboard Port
labelZh: Dashboard 端口
required: true
type: number
rule: paramPort
- default: admin
envKey: USER_NAME
labelEn: Username