1
0

feat:调整perfree-blog

This commit is contained in:
okxlin
2024-12-15 19:57:30 +08:00
parent 2da54dc132
commit 63bc4470c9
9 changed files with 93 additions and 67 deletions

View File

@@ -0,0 +1,10 @@
CONTAINER_NAME="perfree-blog"
DATA_PATH="./data"
PANEL_APP_PORT_HTTP=40337
PANEL_DB_HOST="mysql"
PANEL_DB_HOST_NAME="mysql"
PANEL_DB_NAME="perfree"
PANEL_DB_PORT=3306
PANEL_DB_TYPE="mysql"
PANEL_DB_USER="perfree"
PANEL_DB_USER_PASSWORD="perfree"

View File

@@ -0,0 +1,57 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
required: true
type: service
default: mysql
envKey: PANEL_DB_TYPE
labelEn: Database Service
labelZh: 数据库服务
required: true
type: apps
values:
- label: MySQL
value: mysql
- label: LocalMySQL
value: localmysql
- default: "perfree"
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: "perfree"
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: "perfree"
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: "40337"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "./data"
edit: true
envKey: DATA_PATH
labelEn: Data Path
labelZh: 数据路径
required: true
type: text

View File

@@ -0,0 +1,20 @@
services:
perfree-blog:
image: "registry.cn-hangzhou.aliyuncs.com/perfree/perfree_blog:v4.0.11"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8080
volumes:
- "${DATA_PATH}:/perfree-server/resources"
environment:
SPRING_DATASOURCE_URL: jdbc:${PANEL_DB_TYPE}://${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true
SPRING_DATASOURCE_USERNAME: ${PANEL_DB_USER}
SPRING_DATASOURCE_PASSWORD: ${PANEL_DB_USER_PASSWORD}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@@ -0,0 +1,22 @@
# PerfreeBlog
**PerfreeBlog** 是一款基于java开发的博客/CMS建站平台,拥有丰富的主题支持及扩展插件功能,给您带来全新的创作体验~
## 功能简介
- 设计简洁,界面美观
- 支持多主题自由切换
- 强大的主题在线编辑功能, 支持主题在线编辑
- 支持自定义页面
- 支持友情链接
- 支持附件管理,附件在线预览
- 支持扩展插件,插件编写方式与普通程序基本一致,直接后台安装生效,丰富程序多样性
- 主题开发简单快速,多种自定义指令及api接口支持
- 支持邮件服务,评论信息邮件提醒
- 安装部署简单
- ......
## 相关链接
- 官网地址: <https://perfree.org.cn/>
- 文档地址: <https://perfree.org.cn/useDocs/>

View File

@@ -0,0 +1,19 @@
name: PerfreeBlog
tags:
- 建站
title: 开源的博客/CMS 建站工具
description: 开源的博客/CMS 建站工具
additionalProperties:
key: perfree-blog
name: PerfreeBlog
tags:
- Website
shortDescZh: 开源的博客/CMS 建站工具
shortDescEn: open source blog/CMS website builder
type: website
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://perfree.org.cn/
github: https://github.com/PerfreeBlog/PerfreeBlog
document: https://perfree.org.cn/useDocs/

BIN
apps/perfree-blog/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB