mirror of
https://github.com/QYG2297248353/appstore-dpanel
synced 2025-12-29 08:01:36 +08:00
Synced apps from source repository via GitHub Actions
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# 数据持久化路径 [必填]
|
||||
WATCHYOURLAN_ROOT_PATH=/home/watchyourlan
|
||||
|
||||
# 访问端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=8840
|
||||
|
||||
# 主题 [必填]
|
||||
THEME=sand
|
||||
|
||||
# 颜色 [必填]
|
||||
COLOR=dark
|
||||
|
||||
# 通知地址
|
||||
SHOUTRRR_URL=
|
||||
|
||||
# 监听网卡 (多个用逗号分隔) [必填]
|
||||
IFACES=enp2s0
|
||||
|
||||
# 超时时间 (秒) [必填]
|
||||
TIMEOUT=120
|
||||
|
||||
# 历史记录保留失效 (小时) [必填]
|
||||
TRIM_HIST=48
|
||||
|
||||
# 历史记录存储方式 [必填]
|
||||
HIST_IN_DB=false
|
||||
|
||||
# 数据存储方式 [必填]
|
||||
USE_DB=sqlite
|
||||
|
||||
# PostgreSQL 连接地址
|
||||
PG_CONNECT=
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/watchyourlan"
|
||||
edit: true
|
||||
envKey: WATCHYOURLAN_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 8840
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: 访问端口
|
||||
labelEn: Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "sand"
|
||||
edit: true
|
||||
envKey: THEME
|
||||
labelZh: 主题
|
||||
labelEn: Theme
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: Sand
|
||||
value: "sand"
|
||||
- label: Emerald
|
||||
value: "emerald"
|
||||
- label: Grass
|
||||
value: "grass"
|
||||
- label: Grayscale
|
||||
value: "grayscale"
|
||||
- label: Ocean
|
||||
value: "ocean"
|
||||
- label: Wood
|
||||
value: "wood"
|
||||
- default: "dark"
|
||||
edit: true
|
||||
envKey: COLOR
|
||||
labelZh: 颜色
|
||||
labelEn: Color
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 浅色
|
||||
value: "light"
|
||||
- label: 深色
|
||||
value: "dark"
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: SHOUTRRR_URL
|
||||
labelZh: 通知地址
|
||||
labelEn: Notification URL
|
||||
required: false
|
||||
type: text
|
||||
- default: "enp2s0"
|
||||
edit: true
|
||||
envKey: IFACES
|
||||
labelZh: 监听网卡 (多个用逗号分隔)
|
||||
labelEn: Listening network card (separated by commas)
|
||||
required: true
|
||||
type: text
|
||||
- default: 120
|
||||
edit: true
|
||||
envKey: TIMEOUT
|
||||
labelZh: 超时时间 (秒)
|
||||
labelEn: Timeout (seconds)
|
||||
required: true
|
||||
type: number
|
||||
- default: 48
|
||||
edit: true
|
||||
envKey: TRIM_HIST
|
||||
labelZh: 历史记录保留失效 (小时)
|
||||
labelEn: Historical record retention invalid (hours)
|
||||
required: true
|
||||
type: number
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: HIST_IN_DB
|
||||
labelZh: 历史记录存储方式
|
||||
labelEn: Historical record storage method
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 内存存储
|
||||
value: "false"
|
||||
- label: 数据库存储
|
||||
value: "true"
|
||||
- default: "sqlite"
|
||||
edit: true
|
||||
envKey: USE_DB
|
||||
labelZh: 数据存储方式
|
||||
labelEn: Data storage method
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: SQLite
|
||||
value: "sqlite"
|
||||
- label: PostgreSQL
|
||||
value: "postgres"
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: PG_CONNECT
|
||||
labelZh: PostgreSQL 连接地址
|
||||
labelEn: PostgreSQL connection address
|
||||
required: false
|
||||
type: text
|
||||
@@ -0,0 +1,22 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
watchyourlan:
|
||||
container_name: watchyourlan
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- HOST=0.0.0.0
|
||||
- PORT=8840
|
||||
- LOG_LEVEL=info
|
||||
image: aceberg/watchyourlan:2.1.3
|
||||
labels:
|
||||
createdBy: Apps
|
||||
network_mode: host
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8840
|
||||
restart: always
|
||||
volumes:
|
||||
- ${WATCHYOURLAN_ROOT_PATH}/data:/data/WatchYourLAN
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
@@ -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
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user