diff --git a/apps/waline/1.33.0/data.yml b/apps/waline/1.33.0/data.yml new file mode 100644 index 000000000..fd6cc0df7 --- /dev/null +++ b/apps/waline/1.33.0/data.yml @@ -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: 安全密钥 + 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 diff --git a/apps/waline/1.33.0/docker-compose.yml b/apps/waline/1.33.0/docker-compose.yml new file mode 100644 index 000000000..a8c9b0901 --- /dev/null +++ b/apps/waline/1.33.0/docker-compose.yml @@ -0,0 +1,25 @@ +networks: + 1panel-network: + external: true + +services: + waline: + image: lizheming/waline:1.33.0 + 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_ diff --git a/apps/waline/1.33.0/envs/default.env b/apps/waline/1.33.0/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/apps/waline/1.33.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/waline/1.33.0/envs/global.env b/apps/waline/1.33.0/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/apps/waline/1.33.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/waline/1.33.0/scripts/init.sh b/apps/waline/1.33.0/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/waline/1.33.0/scripts/init.sh @@ -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 diff --git a/apps/waline/1.33.0/scripts/uninstall.sh b/apps/waline/1.33.0/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/waline/1.33.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/waline/1.33.0/scripts/upgrade.sh b/apps/waline/1.33.0/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/waline/1.33.0/scripts/upgrade.sh @@ -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 diff --git a/apps/waline/README.md b/apps/waline/README.md new file mode 100644 index 000000000..0fb00809e --- /dev/null +++ b/apps/waline/README.md @@ -0,0 +1,46 @@ +# Waline + +一款简洁、安全的评论系统。 + +![Waline](https://file.lifebus.top/imgs/waline_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 特性 + +### 轻量 + +53kb gzip 的完整客户端大小 + +### 完全免费部署 + +可免费部署在 Vercel 上 + +### 易于部署 + +多种部署部署方式和存储服务支持 + +### 登录支持 + +在允许匿名评论的基础上,支持账号注册,保持身份 + +### 自由评论 + +完全的 Markdown 支持,同时包含表情、数学公式、HTML 嵌入 + +### 强大的安全性 + +内容校验、防灌水、保护敏感数据等 + +### 文章反应 + +快速表达你对文章的态度 + +### 浏览量统计 + +通过 <1kb 代码可靠统计文章浏览量 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) +![Ms Studio](https://analytics.lifebus.top/p/wJix5nI1W) diff --git a/apps/waline/data.yml b/apps/waline/data.yml new file mode 100644 index 000000000..aac224f8c --- /dev/null +++ b/apps/waline/data.yml @@ -0,0 +1,17 @@ +additionalProperties: + key: waline + name: Waline + tags: + - WebSite + - Local + shortDescZh: 卓越的静态站点评论系统 + shortDescEn: Excellent static site comment system + type: website + crossVersionUpdate: true + limit: 0 + website: https://waline.js.org/ + github: https://github.com/walinejs/waline + document: https://waline.js.org/guide/ + architectures: + - amd64 + - arm64 diff --git a/apps/waline/logo.png b/apps/waline/logo.png new file mode 100644 index 000000000..97fe7dcb3 Binary files /dev/null and b/apps/waline/logo.png differ