diff --git a/anheyu-blog-pro/1.0.27/data.yml b/anheyu-blog-pro/1.0.27/data.yml new file mode 100644 index 000000000..e14910b2c --- /dev/null +++ b/anheyu-blog-pro/1.0.27/data.yml @@ -0,0 +1,133 @@ +additionalProperties: + formFields: + - child: + default: "" + envKey: PANEL_DB_HOST + required: true + type: service + default: mysql + envKey: PANEL_DB_TYPE + labelEn: Database Service + labelZh: 数据库服务 + label: + en: Database Service + ja: データベースサービス + ms: Perkhidmatan Pangkalan Data + pt-br: Serviço de Banco de Dados + ru: Сервис базы данных + ko: 데이터베이스 서비스 + zh: 数据库服务 + zh-Hant: 數據庫 服務 + required: true + type: apps + values: + - label: MySQL + value: mysql + - label: MariaDB + value: mariadb + - label: PostgreSQL + value: postgres + - default: anheyu + envKey: PANEL_DB_NAME + labelEn: Database Name + labelZh: 数据库名 + label: + en: Database Name + ja: データベース + ms: Pangkalan Data + pt-br: Banco de Dados + ru: База данных + ko: 데이터베이스 + zh: 数据库名 + zh-Hant: 數據庫名 + random: true + required: true + rule: paramCommon + type: text + - default: anheyu + envKey: PANEL_DB_USER + labelEn: Database User + labelZh: 数据库用户 + label: + en: Database User + ja: ユーザー + ms: Pengguna + pt-br: Usuário + ru: Пользователь + ko: 사용자 + zh: 数据库用户 + zh-Hant: 數據庫用戶 + random: true + required: true + rule: paramCommon + type: text + - default: anheyu + envKey: PANEL_DB_USER_PASSWORD + labelEn: Database User Password + labelZh: 数据库用户密码 + label: + en: Database User Password + ja: パスワード + ms: Kata Laluan + pt-br: Senha + ru: Пароль + ko: 비밀번호 + zh: 数据库用户密码 + zh-Hant: 數據庫用戶密碼 + random: true + required: true + type: password + - default: "" + envKey: PANEL_REDIS_HOST + key: redis + labelEn: Redis Service + labelZh: redis 服务 + required: true + type: service + label: + en: Redis Service + ja: Redisサービス + ms: Perkhidmatan Redis + pt-br: Serviço Redis + ru: Сервис Redis + ko: Redis 서비스 + zh: redis 服务 + zh-Hant: redis 服务 + - default: "" + envKey: PANEL_REDIS_ROOT_PASSWORD + labelEn: Redis Service Password + labelZh: 缓存服务服务密码 + required: false + type: password + # 验证密钥 + - default: "" + envKey: PANEL_LICENSE_KEY + labelEn: License Key + labelZh: 授权密钥 + label: + en: License Key + ja: ライセンスキー + ms: Kunci Lesen + pt-br: Chave de Licença + ru: Лицензионный ключ + ko: 라이선스 키 + zh: 授权密钥 + zh-Hant: 授權密鑰 + required: true + type: password + - default: 37826 + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: HTTP 端口 + label: + en: Port + ja: ポート + ms: Port + pt-br: Porta + ru: Порт + ko: 포트 + zh: HTTP 端口 + zh-Hant: HTTP連接埠 + required: true + rule: paramPort + type: number diff --git a/anheyu-blog-pro/1.0.27/docker-compose.yml b/anheyu-blog-pro/1.0.27/docker-compose.yml new file mode 100644 index 000000000..e6eb618a9 --- /dev/null +++ b/anheyu-blog-pro/1.0.27/docker-compose.yml @@ -0,0 +1,29 @@ +services: + anheyu: + # build: . + image: anheyu/anheyu-backend:v1.0.27 + container_name: ${CONTAINER_NAME} + restart: always + labels: + createdBy: "Apps" + ports: + - ${PANEL_APP_PORT_HTTP}:8091 + environment: + ANHEYU_DATABASE_TYPE: ${PANEL_DB_TYPE} + ANHEYU_DATABASE_HOST: ${PANEL_DB_HOST} + ANHEYU_DATABASE_USER: ${PANEL_DB_USER} + ANHEYU_DATABASE_NAME: ${PANEL_DB_NAME} + ANHEYU_DATABASE_PORT: ${PANEL_DB_PORT} + ANHEYU_DATABASE_PASSWORD: ${PANEL_DB_USER_PASSWORD} + ANHEYU_REDIS_ADDR: ${PANEL_REDIS_HOST}:6379 + ANHEYU_REDIS_PASSWORD: ${PANEL_REDIS_ROOT_PASSWORD} + ANHEYU_REDIS_DB: 10 + ANHEYU_LICENSE_KEY: ${PANEL_LICENSE_KEY} + networks: + - 1panel-network + volumes: + - ./data:/anheyu/data + +networks: + 1panel-network: + external: true \ No newline at end of file diff --git a/anheyu-blog-pro/1.0.27/scripts/init.sh b/anheyu-blog-pro/1.0.27/scripts/init.sh new file mode 100644 index 000000000..d68a2c04d --- /dev/null +++ b/anheyu-blog-pro/1.0.27/scripts/init.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Script to replace anheyu/anheyu-backend with harbor.anheyu.com/anheyu/pro in docker-compose.yml +# Compatible with Ubuntu, CentOS, Debian and other Linux distributions +# Check if docker-compose.yml exists +if [ ! -f "./docker-compose.yml" ]; then + echo "Error: ./docker-compose.yml file not found!" + exit 1 +fi +# Check if backup file already exists and remove it +if [ -f "./docker-compose.yml.back" ]; then + echo "Existing backup file found, removing old backup..." + rm ./docker-compose.yml.back +fi +# Create backup of original file +cp ./docker-compose.yml ./docker-compose.yml.back +echo "Backup created: ./docker-compose.yml.back" +# Replace anheyu/anheyu-backend with harbor.anheyu.com/anheyu/pro +sed -i 's|anheyu/anheyu-backend|harbor.anheyu.com/anheyu/pro|g' ./docker-compose.yml +# Check if replacement was successful +if grep -q "harbor.anheyu.com/anheyu/pro" ./docker-compose.yml; then + echo "Successfully replaced anheyu/anheyu-backend with harbor.anheyu.com/anheyu/pro" + echo "Changes applied to ./docker-compose.yml" +else + echo "Warning: No replacements were made. Please check if 'anheyu/anheyu-backend' exists in the file." +fi +# Show the changes +echo "" +echo "Modified lines:" +grep "harbor.anheyu.com/anheyu/pro" ./docker-compose.yml || echo "No matching lines found" \ No newline at end of file diff --git a/anheyu-blog-pro/1.0.27/scripts/upgrade.sh b/anheyu-blog-pro/1.0.27/scripts/upgrade.sh new file mode 100644 index 000000000..d68a2c04d --- /dev/null +++ b/anheyu-blog-pro/1.0.27/scripts/upgrade.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Script to replace anheyu/anheyu-backend with harbor.anheyu.com/anheyu/pro in docker-compose.yml +# Compatible with Ubuntu, CentOS, Debian and other Linux distributions +# Check if docker-compose.yml exists +if [ ! -f "./docker-compose.yml" ]; then + echo "Error: ./docker-compose.yml file not found!" + exit 1 +fi +# Check if backup file already exists and remove it +if [ -f "./docker-compose.yml.back" ]; then + echo "Existing backup file found, removing old backup..." + rm ./docker-compose.yml.back +fi +# Create backup of original file +cp ./docker-compose.yml ./docker-compose.yml.back +echo "Backup created: ./docker-compose.yml.back" +# Replace anheyu/anheyu-backend with harbor.anheyu.com/anheyu/pro +sed -i 's|anheyu/anheyu-backend|harbor.anheyu.com/anheyu/pro|g' ./docker-compose.yml +# Check if replacement was successful +if grep -q "harbor.anheyu.com/anheyu/pro" ./docker-compose.yml; then + echo "Successfully replaced anheyu/anheyu-backend with harbor.anheyu.com/anheyu/pro" + echo "Changes applied to ./docker-compose.yml" +else + echo "Warning: No replacements were made. Please check if 'anheyu/anheyu-backend' exists in the file." +fi +# Show the changes +echo "" +echo "Modified lines:" +grep "harbor.anheyu.com/anheyu/pro" ./docker-compose.yml || echo "No matching lines found" \ No newline at end of file diff --git a/anheyu-blog-pro/README.md b/anheyu-blog-pro/README.md new file mode 100644 index 000000000..2acdf20d6 --- /dev/null +++ b/anheyu-blog-pro/README.md @@ -0,0 +1,78 @@ +# 🌈 Anheyu Blog Pro + +> 该版本需要密钥方可运行,如果尚未得到授权请使用社区版本 + +如果能给我一个 **Star ⭐**,那将是对我莫大的鼓励。 + +在使用本应用前请注意: +它是一个 **独立应用**,需要服务器环境才能运行。推荐使用 **Docker 部署**,可大大减少环境配置带来的问题。 + +由 **安知鱼** 负责开发与维护。 + +* GitHub: [https://github.com/anzhiyu-c/anheyu-app](https://github.com/anzhiyu-c/anheyu-app) +* 预览: 👍 AnZhiYu | 🤞 AnZhiYu +* 文档: 📖 AnHeYu Docs + +--- + +## 🌟 系统简介 + +**Anheyu Blog** 是一个基于 **Go + Vue3** 的现代化博客与内容管理系统。 +后端使用 **Go** 提供高性能 API,前端采用 **Vue3 + Element Plus** 打造美观易用的用户界面。 + +--- + +## ✨ 功能特性 + +* ✅ Markdown 编辑 & 富文本预览 +* ✅ 图片上传、管理与懒加载 +* ✅ 分类 & 标签管理 +* ✅ 外部链接收集与分享 +* ✅ 内置评论系统,支持用户互动 +* ✅ 文件管理与缩略图优化 +* ✅ 多种数据库支持(MySQL/PostgreSQL/SQLite) +* ✅ 灵活存储配置 +* ✅ 暗黑模式 / 沉浸式状态栏 +* ✅ LaTeX 数学公式 & Mermaid 流程图 +* ✅ 广告挂载 & Inject 自定义扩展 +* ✅ AI 摘要(Pro) +* ✅ PWA 渐进式应用 & 高速缓存 +* ✅ 优秀的隐私协议支持 + +--- + +## 🏗️ 技术栈 + +* **后端**: Go + Ent +* **前端**: Vue3 + Element Plus +* **数据库**: MySQL / PostgreSQL / SQLite + +--- + +## 🤝 贡献 + +欢迎提交 **Issue / PR** 帮助改进项目! + +--- + +## 📄 开源协议 + +本项目基于 **GPL-3.0 License** 开源。 + +--- + +## 👨‍💻 作者 + +* **安知鱼**(项目维护者) + +--- + +## 🙏 致谢 + +感谢所有为本项目贡献的开发者与用户! + +--- + +## 📢 社区 + +* QQ 群组:**464636182** diff --git a/anheyu-blog-pro/data.yml b/anheyu-blog-pro/data.yml new file mode 100644 index 000000000..303990deb --- /dev/null +++ b/anheyu-blog-pro/data.yml @@ -0,0 +1,30 @@ +name: Anheyu Blog Pro +tags: + - 建站 +title: [赞助版]一个基于 Go + Vue3 的现代化博客与内容管理系统 +description: [赞助版]基于 Go 语言后端与 Vue3 前端构建的高性能博客与内容管理平台 +additionalProperties: + key: anheyu-blog-pro + name: Anheyu Blog Pro + tags: + - website + shortDescZh: 一个基于 Go + Vue3 的现代化博客与内容管理系统 + shortDescEn: A modern blog and content management system built with Go and Vue3 + type: website + crossVersionUpdate: true + limit: 0 + website: https://anheyu.com/ + github: https://github.com/anzhiyu-c/anheyu-app + document: https://anheyu.com/posts/Z3MC + description: + en: A modern blog and content management system built with Go backend and Vue3 frontend. + zh: 一个基于 Go 语言后端与 Vue3 前端构建的现代化博客与内容管理系统。 + zh-Hant: 一個基於 Go 語言後端與 Vue3 前端構建的現代化部落格與內容管理系統。 + ja: Go バックエンドと Vue3 フロントエンドで構築されたモダンなブログ・コンテンツ管理システム。 + ms: Sistem blog dan pengurusan kandungan moden dibina dengan Go backend dan Vue3 frontend. + pt-br: Um sistema moderno de blog e gerenciamento de conteúdo construído com Go e Vue3. + ru: Современная система ведения блогов и управления контентом, построенная на Go и Vue3. + ko: Go 백엔드와 Vue3 프론트엔드로 구축된 현대적인 블로그 및 콘텐츠 관리 시스템. + architectures: + - amd64 + - arm64 diff --git a/anheyu-blog-pro/logo.png b/anheyu-blog-pro/logo.png new file mode 100644 index 000000000..5aebd2779 Binary files /dev/null and b/anheyu-blog-pro/logo.png differ diff --git a/anheyu-blog/1.0.27/data.yml b/anheyu-blog/1.0.27/data.yml index 1358a9b55..8117131e4 100644 --- a/anheyu-blog/1.0.27/data.yml +++ b/anheyu-blog/1.0.27/data.yml @@ -62,7 +62,7 @@ additionalProperties: rule: paramCommon type: text - default: anheyu - envKey: PANEL_DB_PASSWORD + envKey: PANEL_DB_USER_PASSWORD labelEn: Database User Password labelZh: 数据库用户密码 label: diff --git a/anheyu-blog/1.0.27/docker-compose.yml b/anheyu-blog/1.0.27/docker-compose.yml index 65a5996ee..622b480d0 100644 --- a/anheyu-blog/1.0.27/docker-compose.yml +++ b/anheyu-blog/1.0.27/docker-compose.yml @@ -14,7 +14,7 @@ services: ANHEYU_DATABASE_USER: ${PANEL_DB_USER} ANHEYU_DATABASE_NAME: ${PANEL_DB_NAME} ANHEYU_DATABASE_PORT: ${PANEL_DB_PORT} - ANHEYU_DATABASE_PASSWORD: ${PANEL_DB_PASSWORD} + ANHEYU_DATABASE_PASSWORD: ${PANEL_DB_USER_PASSWORD} ANHEYU_REDIS_ADDR: ${PANEL_REDIS_HOST}:6379 ANHEYU_REDIS_PASSWORD: ${PANEL_REDIS_ROOT_PASSWORD} ANHEYU_REDIS_DB: 10