feat:优化适配sscms

This commit is contained in:
okxlin 2024-04-25 00:17:45 +08:00
parent 2421a66f88
commit bace1cd1c0
9 changed files with 178 additions and 105 deletions

View File

@ -0,0 +1,11 @@
CONTAINER_NAME="sscms"
PANEL_APP_PORT_HTTP="40221"
PANEL_DB_HOST="postgresql"
PANEL_DB_HOST_NAME="postgresql"
PANEL_DB_NAME="sscms_23w7b4"
PANEL_DB_PORT="5432"
PANEL_DB_TYPE="postgresql"
PANEL_DB_USER="sscms_PkXRtG"
PANEL_DB_USER_PASSWORD="sscms_k3StZP"
SSCMS_SECURITY_KEY="e2a3d303-ac9b-41ff-9154-930710af0845"
SSCMS_REDIS_CONNECTION_STRING=""

64
apps/sscms/7.3.0/data.yml Normal file
View File

@ -0,0 +1,64 @@
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: PostgreSQL
value: postgresql
- default: sscms
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: sscms
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: sscms
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: 40221
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: 'e2a3d303-ac9b-41ff-9154-930710af0845'
edit: true
envKey: SSCMS_SECURITY_KEY
labelEn: Communication key (GUID string)
labelZh: 通信密钥 (GUID 字符串)
required: true
type: text
- default: ''
edit: true
envKey: SSCMS_REDIS_CONNECTION_STRING
labelEn: Redis Connection Information (redis:6379,password=123456)
labelZh: Redis 连接信息 (redis:6379,password=123456)
required: false
type: text

View File

@ -0,0 +1,27 @@
version: '3'
services:
sscms:
image: sscms/core:7.3.0
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:8080"
volumes:
- ./data:/app/wwwroot
environment:
- SSCMS_SECURITY_KEY=${SSCMS_SECURITY_KEY}
- SSCMS_DATABASE_TYPE=${PANEL_DB_TYPE}
- SSCMS_DATABASE_HOST=${PANEL_DB_HOST}
- SSCMS_DATABASE_PORT=${PANEL_DB_PORT}
- SSCMS_DATABASE_NAME=${PANEL_DB_NAME}
- SSCMS_DATABASE_USER=${PANEL_DB_USER}
- SSCMS_DATABASE_PASSWORD=${PANEL_DB_USER_PASSWORD}
- SSCMS_REDIS_CONNECTION_STRING=${SSCMS_REDIS_CONNECTION_STRING}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@ -1,3 +1,8 @@
# 使用说明
打开浏览器,访问地址 http://<IP地址或域名>/ss-admin/install进入 SSCMS 系统安装界面
***
# SSCMS # SSCMS
<img src="https://sscms.com/docs/v7/logo.png" height="220" align="center"> <img src="https://sscms.com/docs/v7/logo.png" height="220" align="center">
@ -30,70 +35,3 @@ SSCMS 基于 .NET Core能够以最低的成本、最少的人力投入在最
[《SSCMS REST API》](https://sscms.com/docs/v7/api/) [《SSCMS REST API》](https://sscms.com/docs/v7/api/)
[《SSCMS 数据结构》](https://sscms.com/docs/v7/model/) [《SSCMS 数据结构》](https://sscms.com/docs/v7/model/)
## SSCMS 源码结构
```code
│ sscms.sln Visual Studio 项目文件
├─docker Docker 配置文件
├─src/Datory 数据库基础类
├─src/SSCMS 接口、基础类
├─src/SSCMS.Cli 命令行工具
├─src/SSCMS.Core CMS核心代码
├─src/SSCMS.Web CMS App
└─tests 测试
```
## 发布跨平台版本
## 在 Docker 中运行
拉取最新版本的 SSCMS 镜像
```sh
docker pull sscms/core:latest
```
运行 SSCMS 容器
```sh
docker run -d \
--name my-sscms \
-p 80:80 \
--restart=always \
-v volume-sscms:/app/wwwroot \
-e SSCMS_SECURITY_KEY=e2a3d303-ac9b-41ff-9154-930710af0845 \
-e SSCMS_DATABASE_TYPE=SQLite \
sscms/core
```
## 贡献代码
项目编译需要使用 Visual Studio 2022你可以从这里下载 [Visual Studio Community 2022](https://www.visualstudio.com/downloads/)
代码贡献有很多形式,从提交问题,撰写文档,到提交代码,我们欢迎任何形式的贡献!
## 系统更新
SSCMS 产品将每隔两月发布新的正式版本,我们将在每次迭代中对核心功能、文档支持、功能插件以及网站模板四个方面进行持续改进。
## 问题与建议
如果发现任何 BUG 以及对产品使用的问题与建议,请提交至 [Github Issues](https://github.com/siteserver/cms/issues) 或者 [Gitee Issues](https://gitee.com/siteserver/cms/issues)。
## 关注最新动态
[![qrcode](https://sscms.com/assets/images/qrcode_for_wx.jpg)](https://sscms.com/)
## 特别声明
SSCMS 项目已加入 [dotNET China](https://gitee.com/dotnetchina) 组织。<br/>
![dotnetchina](https://gitee.com/dotnetchina/home/raw/master/assets/dotnetchina-raw.png "dotNET China LOGO")
## License
[GNU Affero General Public License v3.0](LICENSE)
Copyright (C) 2003-2023 SSCMS

View File

@ -1,15 +1,19 @@
name: SSCMS 内容管理系统
tags:
- 建站
title: 开源免费、企业级、可商用的CMS内容管理系统
description: 开源免费、企业级、可商用的CMS内容管理系统
additionalProperties: additionalProperties:
crossVersionUpdate: 'true' key: sscms
document: https://sscms.com/docs/ name: SSCMS 内容管理系统
github: https://github.com/siteserver/cms tags:
key: sscms - WebSite
limit: 0 shortDescZh: 开源免费、企业级、可商用的CMS内容管理系统
name: SSCMS 内容管理系统 shortDescEn: Open source free, enterprise-class, commercially available CMS content management system
shortDescEn: SiteServer CMS is an open source, free, enterprise-level, commercially type: website
available CMS content management system. crossVersionUpdate: true
shortDescZh: 开源免费、企业级、可商用的CMS内容管理系统 limit: 0
tags: recommend: 0
- WebSite website: https://sscms.com
- Tool github: https://github.com/siteserver/cms
type: tool document: https://sscms.com/docs
website: https://sscms.com/

View File

@ -0,0 +1,11 @@
CONTAINER_NAME="sscms"
PANEL_APP_PORT_HTTP="40221"
PANEL_DB_HOST="postgresql"
PANEL_DB_HOST_NAME="postgresql"
PANEL_DB_NAME="sscms_23w7b4"
PANEL_DB_PORT="5432"
PANEL_DB_TYPE="postgresql"
PANEL_DB_USER="sscms_PkXRtG"
PANEL_DB_USER_PASSWORD="sscms_k3StZP"
SSCMS_SECURITY_KEY="e2a3d303-ac9b-41ff-9154-930710af0845"
SSCMS_REDIS_CONNECTION_STRING=""

View File

@ -40,11 +40,25 @@ additionalProperties:
required: true required: true
rule: paramComplexity rule: paramComplexity
type: password type: password
- default: 8080 - default: 40221
edit: true edit: true
envKey: PANEL_APP_PORT_HTTP envKey: PANEL_APP_PORT_HTTP
labelEn: Port labelEn: Port
labelZh: 端口 labelZh: 端口
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: 'e2a3d303-ac9b-41ff-9154-930710af0845'
edit: true
envKey: SSCMS_SECURITY_KEY
labelEn: Communication key (GUID string)
labelZh: 通信密钥 (GUID 字符串)
required: true
type: text
- default: ''
edit: true
envKey: SSCMS_REDIS_CONNECTION_STRING
labelEn: Redis Connection Information (redis:6379,password=123456)
labelZh: Redis 连接信息 (redis:6379,password=123456)
required: false
type: text

View File

@ -1,23 +1,27 @@
version: '3.9' version: '3'
services: services:
sscms: sscms:
container_name: ${CONTAINER_NAME} image: sscms/core:latest
image: sscms/core:latest container_name: ${CONTAINER_NAME}
volumes: restart: always
- ./data:/app/wwwroot networks:
ports: - 1panel-network
- ${PANEL_APP_PORT_HTTP}:8080 ports:
restart: always - "${PANEL_APP_PORT_HTTP}:8080"
environment: volumes:
- SSCMS_SECURITY_KEY=e2a3d303-ac9b-41ff-9154-930710af0845 - ./data:/app/wwwroot
- SSCMS_DATABASE_TYPE=${PANEL_DB_TYPE} environment:
- SSCMS_DATABASE_HOST=${PANEL_DB_HOST} - SSCMS_SECURITY_KEY=${SSCMS_SECURITY_KEY}
- SSCMS_DATABASE_PORT=${PANEL_DB_PORT} - SSCMS_DATABASE_TYPE=${PANEL_DB_TYPE}
- SSCMS_DATABASE_NAME=${PANEL_DB_NAME} - SSCMS_DATABASE_HOST=${PANEL_DB_HOST}
- SSCMS_DATABASE_USER=${PANEL_DB_USER} - SSCMS_DATABASE_PORT=${PANEL_DB_PORT}
- SSCMS_DATABASE_PASSWORD=${PANEL_DB_USER_PASSWORD} - SSCMS_DATABASE_NAME=${PANEL_DB_NAME}
networks: - SSCMS_DATABASE_USER=${PANEL_DB_USER}
- 1panel-network - SSCMS_DATABASE_PASSWORD=${PANEL_DB_USER_PASSWORD}
networks: - SSCMS_REDIS_CONNECTION_STRING=${SSCMS_REDIS_CONNECTION_STRING}
1panel-network: labels:
external: true createdBy: "Apps"
networks:
1panel-network:
external: true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB