Merge branch 'pr-1176' into localApps

This commit is contained in:
okxlin 2024-04-24 22:47:30 +08:00
commit 2421a66f88
5 changed files with 187 additions and 0 deletions

99
apps/sscms/README.md Normal file
View File

@ -0,0 +1,99 @@
# SSCMS
<img src="https://sscms.com/docs/v7/logo.png" height="220" align="center">
<br /><br />
SSCMS 基于 .NET Core能够以最低的成本、最少的人力投入在最短的时间内架设一个功能齐全、性能优异、规模庞大并易于维护的网站平台。
## 版本
项目发布的正式版本存放在 `master` 分支
| 编译状态 | 版本号 | 发布日期 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [![Build status](https://sscms.visualstudio.com/cms/_apis/build/status/siteserver.cms?branchName=master)](https://sscms.visualstudio.com/cms/_build/latest?definitionId=1&branchName=master) | ![Nuget version](https://img.shields.io/nuget/v/SSCMS.svg) | ![master last commit](https://img.shields.io/github/last-commit/siteserver/cms/master.svg) |
## 开发文档
[《SSCMS 使用指南》](https://sscms.com/docs/v7/getting-started/)
[《SSCMS 系统更新》](https://sscms.com/docs/v7/updates/)
[《SSCMS STL 语言》](https://sscms.com/docs/v7/stl/)
[《SSCMS 插件开发》](https://sscms.com/docs/v7/plugin/)
[《SSCMS 官方插件》](https://sscms.com/docs/v7/official/)
[《SSCMS 命令行》](https://sscms.com/docs/v7/cli/)
[《SSCMS REST API》](https://sscms.com/docs/v7/api/)
[《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

15
apps/sscms/data.yml Normal file
View File

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

View File

@ -0,0 +1,50 @@
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: 8080
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,23 @@
version: '3.9'
services:
sscms:
container_name: ${CONTAINER_NAME}
image: sscms/core:latest
volumes:
- ./data:/app/wwwroot
ports:
- ${PANEL_APP_PORT_HTTP}:8080
restart: always
environment:
- SSCMS_SECURITY_KEY=e2a3d303-ac9b-41ff-9154-930710af0845
- 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}
networks:
- 1panel-network
networks:
1panel-network:
external: true

BIN
apps/sscms/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB