1
0

feat:添加npc到列表

This commit is contained in:
okxlin
2024-04-01 16:32:49 +08:00
parent 631a7e4d5d
commit 9c250c0226
9 changed files with 114 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
CONTAINER_NAME="npc"
NPS_SERVER_ADDR="1.2.3.4:8025"
NPS_VKEY="xly7traGe3r0t6UWltristuh1"
TLS_ENABLE_SWITCH="true"

28
apps/npc/latest/data.yml Normal file
View File

@@ -0,0 +1,28 @@
additionalProperties:
formFields:
- default: 1.2.3.4:8025
edit: true
envKey: NPS_SERVER_ADDR
labelEn: NPS server address
labelZh: NPS 服务端地址
required: true
type: text
- default: "xly7traGe3r0t6UWltristuh1"
edit: true
envKey: NPS_VKEY
labelEn: Client connection key displayed by the server
labelZh: 服务端显示的客户端连接密钥
required: true
rule: paramCommon
type: text
- default: "true"
envKey: TLS_ENABLE_SWITCH
labelEn: Whether TLS is enabled for server-client communication
labelZh: 服务端与客户端的通信是否启用 TLS
required: true
type: select
values:
- label: "True"
value: "true"
- label: "False"
value: "false"

View File

@@ -0,0 +1,10 @@
version: '3'
services:
npc:
image: yisier1/npc:latest
restart: always
network_mode: "host"
command: -server=${NPS_SERVER_ADDR} -vkey=${NPS_VKEY} -tls_enable=${TLS_ENABLE_SWITCH}
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"