mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
发布应用 Waline
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: 安全密钥
|
||||
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.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_
|
||||
@@ -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
|
||||
@@ -0,0 +1,46 @@
|
||||
# Waline
|
||||
|
||||
一款简洁、安全的评论系统。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 特性
|
||||
|
||||
### 轻量
|
||||
|
||||
53kb gzip 的完整客户端大小
|
||||
|
||||
### 完全免费部署
|
||||
|
||||
可免费部署在 Vercel 上
|
||||
|
||||
### 易于部署
|
||||
|
||||
多种部署部署方式和存储服务支持
|
||||
|
||||
### 登录支持
|
||||
|
||||
在允许匿名评论的基础上,支持账号注册,保持身份
|
||||
|
||||
### 自由评论
|
||||
|
||||
完全的 Markdown 支持,同时包含表情、数学公式、HTML 嵌入
|
||||
|
||||
### 强大的安全性
|
||||
|
||||
内容校验、防灌水、保护敏感数据等
|
||||
|
||||
### 文章反应
|
||||
|
||||
快速表达你对文章的态度
|
||||
|
||||
### 浏览量统计
|
||||
|
||||
通过 <1kb 代码可靠统计文章浏览量
|
||||
|
||||
---
|
||||
|
||||

|
||||

|
||||
@@ -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
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
Reference in New Issue
Block a user