mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
Update app version [skip ci]
This commit is contained in:
@@ -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,25 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
waline:
|
||||
image: lizheming/waline:1.36.4
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8360
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${WALINE_ROOT_PATH}/data:/app/data
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- SQLITE_PATH=/app/data
|
||||
- SQLITE_DB=waline
|
||||
- SQLITE_PREFIX=wl_
|
||||
@@ -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