Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-10-03 06:30:37 +00:00
parent 26a88a2388
commit 5fed51c1bd
25 changed files with 3 additions and 3 deletions
+42
View File
@@ -0,0 +1,42 @@
# 数据持久化路径 [必填]
NEZHA_ROOT_PATH=/home/nezha
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=8008
# 系统语言 [必填]
NZ_LANGUAGE=zh_CN
# 数据持久化路径 [必填]
NZ_SITE_NAME=哪吒监控
# Agent是否启用TLS [必填]
NZ_TLS=false
# OAuth 服务商 [必填]
NZ_OAUTH2_TYPE=github
# 管理员账号ID [必填]
NZ_OAUTH2_ADMIN=
# OAuth 客户端 ID [必填]
NZ_OAUTH2_CLIENTID=
# OAuth 客户端 Secret [必填]
NZ_OAUTH2_CLIENTSECRET=
# OAuth 端点 (可选)
NZ_OAUTH2_ENDPOINT=
# 登录有效期 (小时) [必填]
NZ_JWT_TIMEOUT=1
# 强制认证 [必填]
NZ_FORCE_AUTH=false
# 是否脱敏通知IP [必填]
NZ_ENABLE_PLAIN_IP_IN_NOTIFICATION=false
# IP 变更通知 [必填]
NZ_ENABLE_IP_CHANGE_NOTIFICATION=false
+141
View File
@@ -0,0 +1,141 @@
additionalProperties:
formFields:
- default: "/home/nezha"
edit: true
envKey: NEZHA_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 8008
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: "zh_CN"
edit: true
envKey: NZ_LANGUAGE
labelZh: 系统语言
labelEn: System language
required: true
type: select
values:
- label: 中文简体
value: "zh_CN"
- label: 中文繁体
value: "zh_TW"
- label: 英语
value: "en_US"
- default: "哪吒监控"
edit: true
envKey: NZ_SITE_NAME
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: "false"
edit: true
envKey: NZ_TLS
labelZh: Agent是否启用TLS
labelEn: Agent whether to enable TLS
required: true
type: select
values:
- label: 启用
value: "true"
- label: 禁用
value: "false"
- default: "github"
edit: true
envKey: NZ_OAUTH2_TYPE
labelZh: OAuth 服务商
labelEn: OAuth Provider
required: true
type: select
values:
- label: GitHub
value: "github"
- label: Cloudflare
value: "cloudflare"
- label: GitLab
value: "gitlab"
- label: Gitee
value: "gitee"
- label: Gitea
value: "gitea"
- label: Jihulab
value: "jihulab"
- default: ""
edit: true
envKey: NZ_OAUTH2_ADMIN
labelZh: 管理员账号ID
labelEn: Admin Account ID
required: true
type: text
- default: ""
edit: true
envKey: NZ_OAUTH2_CLIENTID
labelEn: OAuth Client ID
labelZh: OAuth 客户端 ID
required: true
type: text
- default: ""
edit: true
envKey: NZ_OAUTH2_CLIENTSECRET
labelEn: OAuth Client Secret
labelZh: OAuth 客户端 Secret
required: true
type: text
- default: ""
edit: true
envKey: NZ_OAUTH2_ENDPOINT
labelEn: OAuth Callback
labelZh: OAuth 端点 (可选)
required: false
type: text
- default: 1
edit: true
envKey: NZ_JWT_TIMEOUT
labelZh: 登录有效期 (小时)
labelEn: Login validity period (hours)
required: true
type: number
- default: "false"
edit: true
envKey: NZ_FORCE_AUTH
labelZh: 强制认证
labelEn: Compulsory Certification
required: true
type: select
values:
- label: 启用
value: "true"
- label: 禁用
value: "false"
- default: "false"
edit: true
envKey: NZ_ENABLE_PLAIN_IP_IN_NOTIFICATION
labelZh: 是否脱敏通知IP
labelEn: Whether to desensitize notification IP
required: true
type: select
values:
- label: 明文IP
value: "true"
- label: 脱敏IP
value: "false"
- default: "false"
edit: true
envKey: NZ_ENABLE_IP_CHANGE_NOTIFICATION
labelZh: IP 变更通知
labelEn: IP Change Notification
required: true
type: select
values:
- label: 通知
value: "true"
- label: 禁用
value: "false"
@@ -0,0 +1,6 @@
debug: false
listen_port: 8008
language: zh_CN
site_name: "nz_site_title"
install_host: 127.0.0.1:8008
tls: false
+19
View File
@@ -0,0 +1,19 @@
networks:
1panel-network:
external: true
services:
nezha:
container_name: nezha
environment:
- NZ_LISTEN_PORT=${PANEL_APP_PORT_HTTP}
- NZ_LOCATION=Asia/Shanghai
image: ghcr.io/nezhahq/nezha:v1.14.3
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
restart: always
volumes:
- ${NEZHA_ROOT_PATH}/data:/dashboard/data
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .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