mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
Processed apps directory via GitHub Actions
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# 数据持久化路径 [必填]
|
||||
WALINE_ROOT_PATH=/home/waline
|
||||
|
||||
# WebUI 端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=8360
|
||||
|
||||
# 站长邮箱 [必填]
|
||||
AUTHOR_EMAIL=mail@example.com
|
||||
|
||||
# JWT 令牌 [必填]
|
||||
JWT_TOKEN=
|
||||
|
||||
# 网站名称 [必填]
|
||||
SITE_NAME=Waline
|
||||
|
||||
# 网站地址 [必填]
|
||||
SITE_URL=http://127.0.0.1:8360
|
||||
|
||||
# 头像代理 [必填]
|
||||
AVATAR_PROXY=https://avatar.75cdn.workers.dev
|
||||
|
||||
# Gravatar 地址模板 [必填]
|
||||
GRAVATAR_STR=https://seccdn.libravatar.org/avatar/{{mail|md5}}
|
||||
|
||||
# 等级标签
|
||||
LEVELS=0,10,20,50,100,200
|
||||
|
||||
# 隐藏 UserAgent [必填]
|
||||
DISABLE_USERAGENT=false
|
||||
|
||||
# 隐藏 归属地 [必填]
|
||||
DISABLE_REGION=false
|
||||
|
||||
# 关闭新评论通知 [必填]
|
||||
DISABLE_AUTHOR_NOTIFY=false
|
||||
|
||||
# 评论审核 [必填]
|
||||
COMMENT_AUDIT=false
|
||||
|
||||
# 评论频率限制 (基于IP) [必填]
|
||||
IPQPS=60
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/waline"
|
||||
edit: true
|
||||
envKey: WALINE_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 8360
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "mail@example.com"
|
||||
edit: true
|
||||
envKey: AUTHOR_EMAIL
|
||||
labelZh: 站长邮箱
|
||||
labelEn: Author email
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: JWT_TOKEN
|
||||
labelZh: JWT 令牌
|
||||
labelEn: JWT token
|
||||
required: true
|
||||
type: text
|
||||
- default: "Waline"
|
||||
edit: true
|
||||
envKey: SITE_NAME
|
||||
labelZh: 网站名称
|
||||
labelEn: Site name
|
||||
required: true
|
||||
type: text
|
||||
- default: "http://127.0.0.1:8360"
|
||||
edit: true
|
||||
envKey: SITE_URL
|
||||
labelZh: 网站地址
|
||||
labelEn: Site URL
|
||||
required: true
|
||||
type: text
|
||||
- default: "https://avatar.75cdn.workers.dev"
|
||||
edit: true
|
||||
envKey: AVATAR_PROXY
|
||||
labelZh: 头像代理
|
||||
labelEn: Avatar proxy
|
||||
required: true
|
||||
type: text
|
||||
- default: "https://seccdn.libravatar.org/avatar/{{mail|md5}}"
|
||||
edit: true
|
||||
envKey: GRAVATAR_STR
|
||||
labelZh: Gravatar 地址模板
|
||||
labelEn: Gravatar address template
|
||||
required: true
|
||||
type: text
|
||||
- default: "0,10,20,50,100,200"
|
||||
edit: true
|
||||
envKey: LEVELS
|
||||
labelZh: 等级标签
|
||||
labelEn: Level tags
|
||||
required: false
|
||||
type: text
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: DISABLE_USERAGENT
|
||||
labelZh: 隐藏 UserAgent
|
||||
labelEn: Hide UserAgent
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 是
|
||||
value: "true"
|
||||
- label: 否
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: DISABLE_REGION
|
||||
labelZh: 隐藏 归属地
|
||||
labelEn: Hide Region
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 是
|
||||
value: "true"
|
||||
- label: 否
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: DISABLE_AUTHOR_NOTIFY
|
||||
labelZh: 关闭新评论通知
|
||||
labelEn: Disable new comment notification
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 是
|
||||
value: "true"
|
||||
- label: 否
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: COMMENT_AUDIT
|
||||
labelZh: 评论审核
|
||||
labelEn: Comment audit
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 是
|
||||
value: "true"
|
||||
- label: 否
|
||||
value: "false"
|
||||
- default: 60
|
||||
edit: true
|
||||
envKey: IPQPS
|
||||
labelZh: 评论频率限制 (基于IP)
|
||||
labelEn: Comment frequency limit (based on IP)
|
||||
required: true
|
||||
type: number
|
||||
@@ -0,0 +1,24 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
waline:
|
||||
container_name: waline
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- SQLITE_PATH=/app/data
|
||||
- SQLITE_DB=waline
|
||||
- SQLITE_PREFIX=wl_
|
||||
image: lizheming/waline:1.40.3
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8360
|
||||
restart: always
|
||||
volumes:
|
||||
- ${WALINE_ROOT_PATH}/data:/app/data
|
||||
@@ -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