https://github.com/deep-project/moss
moss is a simple and lightweight web content management system(cms)🍀moss是一个简单轻量的内容管理系统
https://github.com/deep-project/moss
cms golang
Last synced: 27 days ago
JSON representation
moss is a simple and lightweight web content management system(cms)🍀moss是一个简单轻量的内容管理系统
- Host: GitHub
- URL: https://github.com/deep-project/moss
- Owner: deep-project
- License: mit
- Created: 2023-02-11T07:01:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-27T02:41:57.000Z (2 months ago)
- Last Synced: 2025-02-27T03:36:36.140Z (2 months ago)
- Topics: cms, golang
- Language: Go
- Homepage:
- Size: 7.51 MB
- Stars: 249
- Watchers: 3
- Forks: 55
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Moss
moss is a simple and lightweight web content management systemmoss是一个简单轻量的内容管理系统
可以使用mysql、postgresql、sqlite数据库。后台支持12种语言,可切换明暗风格
使用中不懂的可以加群问我
QQ交流群:68396947
TG交流群:[https://t.me/mosscms](https://t.me/mosscms)
------
+ [English document](https://github.com/deep-project/moss/blob/main/docs/README_EN.md)
+ [主题制作](https://github.com/deep-project/moss/blob/main/docs/theme/README.md)
+ [模板文档](https://github.com/deep-project/moss/blob/main/docs/template/README.md)+ [使用宝塔进程守护管理器部署程序](https://github.com/deep-project/moss/blob/main/docs/other/宝塔进程守护管理器部署程序.md)
+ [docker和docker-compose部署程序](./docs/other/docker和docker-compose部署程序.md)

### 暗色

## 开始使用
+ [下载程序文件](https://github.com/deep-project/moss/releases)
+ 运行./moss
+ 启动成功
> ##### 默认启动后使用sqlite
> ##### 默认后台地址 /admin------
### 配置文件(conf.toml)
| key | 说明 | 默认 |
| ---- | ---------- | --------- |
| addr | 监听地址 | 随机 |
| db | 数据库类型 | sqlite |
| dsn | 数据源 | ./moss.db?_pragma=journal_mode(WAL) |
默认sqlite使用WAL方式打开,防止读取阻塞
+ 数据源示例| Type | dsn 示例 |
| ---------- | ---------------------------------------------------------------------------------- |
| sqlite | ./data.db |
| mysql | user:password@tcp(127.0.0.1:3306)/moss?charset=utf8mb4&parseTime=True |
| postgresql | host=127.0.0.1 port=5432 user=postgres password=123456 dbname=moss sslmode=disable |### 命令行
| key | 说明 | 示例 |
| ----------- | ---------------- | -------------------------------------- |
| --username | 重置管理员用户名 | |
| --password | 重置管理员密码 | |
| --adminpath | 重置后台路径 | ./moss --adminpath="admin" |
| --config | 指定配置文件路径 | ./moss --config="/home/othername.toml" |> ###### 可以通过 ./moss --help 查看更多信息