提交合并

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
2024-07-17 16:30:13 +08:00
committed by qyg2297248353
commit 6c18fe434d
449 changed files with 21391 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
additionalProperties:
formFields:
- default: "/home/ztncui"
edit: true
envKey: ZTNCUI_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 3000
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: 3443
edit: true
envKey: PANEL_APP_PORT_HTTPS
labelZh: HTTPS 端口
labelEn: HTTPS Port
required: true
rule: paramPort
type: number
- default: 9993
edit: true
envKey: PANEL_APP_PORT_API
labelZh: API 端口
labelEn: API Port
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: ZTNCUI_PASSWD
labelZh: 管理员 密码
labelEn: Admin Password
required: true
type: password
- default: ""
edit: true
envKey: MYADDR
labelZh: 服务器IP
labelEn: Server IP
required: true
type: text
+29
View File
@@ -0,0 +1,29 @@
version: "3.8"
networks:
1panel-network:
external: true
services:
ztncui:
image: keynetworks/ztncui:1.2.17
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
network_mode: ${NETWORK_MODE}
ports:
- ${PANEL_APP_PORT_HTTP}:3000
- ${PANEL_APP_PORT_HTTPS}:3443
- ${PANEL_APP_PORT_API}:9993/udp
env_file:
- .env
environment:
- NODE_ENV=production
- HTTP_PORT=3000
- HTTPS_PORT=3443
- ZT_ADDR=localhost:9993
- HTTP_ALL_INTERFACES=yes
volumes:
- ${ZTNCUI_ROOT_PATH}/ztncui:/opt/key-networks/ztncui/etc
- ${ZTNCUI_ROOT_PATH}/zerotier-one:/var/lib/zerotier-one
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi