-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
476 changed files
with
25,262 additions
and
16,042 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.idea | ||
.DS_Store | ||
.vscode | ||
vendor | ||
config.json | ||
goblog | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2020-NOW Fesion <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
AnqiCMS 最终用户授权协议 | ||
|
||
AnqiCMS的官方网址是: www.anqicms.com | ||
|
||
为了使您正确并合法的使用本软件,请您在使用前务必阅读清楚下面的协议条款: | ||
|
||
一、本授权协议适用且仅适用于 AnqiCMS2.x 版本,AnqiCMS官方对本授权协议拥有最终解释权。 | ||
|
||
二、协议许可的权利 | ||
|
||
1.您可以在完全遵守本最终用户授权协议的基础上,将本软件应用于非商业和商业用途,而不必支付软件版权授权费用。 | ||
2.您可以在协议规定的约束和限制范围内修改 AnqiCMS源代码或界面风格以适应您的网站要求。 | ||
3.您拥有使用本软件构建的网站全部内容所有权,并独立承担与这些内容的相关法律义务。 | ||
|
||
三、协议规定的约束和限制 | ||
|
||
1.您不需要获取商业授权,便可将本软件用于构建和经营商业用途网站(包括但不限于企业网站、经营性网站、以营利为目的或实现盈利的网站)。 | ||
2.不管您的网站是否整体使用 AnqiCMS,还是部份栏目使用 AnqiCMS,你都可以选择不保留 AnqiCMS 相关版权信息链接。 | ||
3.未经官方许可,禁止在 AnqiCMS 的整体或任何部分基础上以发展任何派生版本、修改版本或第三方版本用于重新分发,包括但不限于基于AnqiCMS开发SAAS平台等相关服务。 | ||
4.如果您未能遵守本协议的条款,您的授权将被终止,所被许可的权利将被收回,并承担相应法律责任。 | ||
|
||
四、有限担保和免责声明 | ||
|
||
1.本软件及所附带的文件是作为不提供任何明确的或隐含的赔偿或担保的形式提供的。 | ||
2.用户出于自愿而使用本软件,您必须了解使用本软件的风险,在尚未购买产品技术服务之前,我们不承诺对免费用户提供任何形式的技术支持、使用担保,也不承担任何因使用本软件而产生问题的相关责任。 | ||
3.电子文本形式的授权协议如同双方书面签署的协议一样,具有完全的和等同的法律效力。您一旦开始确认本协议并安装 AnqiCMS,即被视为完全理解并接受本协议的各项条款,在享有上述条款授予的权力的同时,受到相关的约束和限制。协议许可范围以外的行为,将直接违反本授权协议并构成侵权,我们有权随时终止授权,责令停止损害,并保留追究相关责任的权力。 | ||
4.如果本软件带有其它软件的整合API示范例子包,这些文件版权不属于本软件官方,并且这些文件是没经过授权发布的,请参考相关软件的使用许可合法的使用。 | ||
|
||
版权所有 ©2019-2022,AnqiCMS.com 保留所有权利。 协议发布时间:202年6月8日 版本最新更新:202年6月8日 By AnqiCMS.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# 在linux或mac下运行 | ||
all: open | ||
|
||
build: clean | ||
mkdir -p -v ./release/windows/cache | ||
cp -r ./doc ./release/windows/ | ||
cp -r ./public ./release/windows/ | ||
rm -rf ./release/windows/public/uploads | ||
rm -rf ./release/windows/public/sitemap.txt | ||
rm -rf ./release/windows/public/robots.txt | ||
rm -rf ./release/windows/public/uploads | ||
cp -r ./template ./release/windows/ | ||
cp -r ./system ./release/windows/ | ||
cp -r ./CHANGELOG.md ./release/windows/ | ||
cp -r ./stop.bat ./release/windows/ | ||
cp -r ./License ./release/windows/ | ||
cp -r ./README.md ./release/windows/ | ||
GOOS=windows GOARCH=amd64 go build -ldflags '-w -s -H=windowsgui' -o ./release/windows/anqicms.exe kandaoni.com/anqicms/main | ||
|
||
mkdir -p -v ./release/linux/cache | ||
cp -r ./doc ./release/linux/ | ||
cp -r ./public ./release/linux/ | ||
rm -rf ./release/linux/public/uploads | ||
rm -rf ./release/linux/public/sitemap.txt | ||
rm -rf ./release/linux/public/robots.txt | ||
cp -r ./template ./release/linux/ | ||
cp -r ./system ./release/linux/ | ||
cp -r ./CHANGELOG.md ./release/linux/ | ||
cp -r ./start.sh ./release/linux/ | ||
cp -r ./stop.sh ./release/linux/ | ||
cp -r ./License ./release/linux/ | ||
cp -r ./README.md ./release/linux/ | ||
GOOS=linux GOARCH=amd64 go build -ldflags '-w -s' -o ./release/linux/anqicms kandaoni.com/anqicms/main | ||
|
||
open: build | ||
open ./release | ||
|
||
clean: | ||
rm -rf ./release/windows | ||
rm -rf ./release/linux | ||
|
||
start: | ||
go run kandaoni.com/anqicms/main | ||
|
||
vet: | ||
go vet $(shell glide nv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
# GoBlog 基于irisweb的golang编写的简洁版个人博客系统 | ||
# AnqiCMS 基于irisweb的golang编写的安企内容管理系统 | ||
|
||
GoBlog是一个开源的个人博客系统,界面优雅,小巧、执行速度飞快,并且对seo友好,可以满足日常博客需求。你完全可以用它来搭建自己的博客。它的使用很简单,部署非常方便。 | ||
|
||
GoBlog是一款由golang编写的博客,它使用了golang非常流行的网页框架irisweb+gorm,pc和移动端自适应,页面模板使用类似blade模板引擎语法,上手非常容易。 | ||
|
||
GoBlog同时支持小程序接口,小程序端使用Taro跨平台框架开发,将同时支持微信小程序、百度智能小程序、QQ小程序、支付宝小程序,字节跳动小程序等。 | ||
安企内容管理系统(AnqiCMS),是一款使用 GoLang 开发的企业站内容管理系统,它部署简单,软件安全,界面优雅,小巧,执行速度飞快,使用 AnqiCMS 搭建的网站可以防止众多安全问题发生。AnqiCMS 的设计对SEO友好,并且内置了大量企业站常用功能,对网站优化有很好的帮助提升,对企业管理网站一定程度上提供了办事效率,提高企业的竞争力。 | ||
|
||
## GoBlog 分支版本说明 | ||
AnqiCMS 除了适合做企业站,也适合做营销型网站、企业官网、商品展示站点、政府网站、门户网站、个人博客等等各种类型的网站。AnqiCMS 是什么,AnqiCMS 是一个可以自由使用并开放源码的内容管理系统,你可以拿 AnqiCMS 来搭建各种不违法的网站。 | ||
|
||
AnqiCMS 支持 Django 模板引擎语法,该语法类似 blade 语法,可以非常容易上手模板制作。网站模式支持 自适应、代码适配、PC+mobile独立站点 模式,根据不用需求,可以选择适合自己的搭配方式来建站。 | ||
|
||
我们的追求:让天下都是安全的网站。 | ||
|
||
我们一直朝着网站安全的方向前进,让 AnqiCMS 为你的网站安全护航。 | ||
|
||
欢迎您使用 AnqiCMS。 | ||
|
||
## AnqiCMS 分支版本说明 | ||
|
||
- master为最新开发版代码 | ||
- simple 为仅包含基础功能的博客代码 | ||
- blog 为具有完整后台的博客代码 | ||
- enterprise 为博客基础上加入了企业站功能的代码 | ||
- enterprise 为安企内容管理系统(AnqiCMS)的代码 | ||
|
||
## GoBlog 开发计划表 | ||
## AnqiCMS 开发计划表 | ||
|
||
### simple 基础功能 (已发布) | ||
|
||
|
@@ -41,7 +47,7 @@ GoBlog同时支持小程序接口,小程序端使用Taro跨平台框架开发 | |
- [x] 自定义导航配置功能 | ||
- [x] 优雅的启动和重启博客 | ||
|
||
### enterprise 企业站适配 (开发中) | ||
### enterprise 安企内容管理系统(AnqiCMS) (已发布) | ||
|
||
- [x] 增加多模板支持功能 | ||
- [x] 增加产品模块和管理 | ||
|
@@ -73,17 +79,17 @@ GoBlog同时支持小程序接口,小程序端使用Taro跨平台框架开发 | |
- [ ] 适配QQ小程序 | ||
|
||
### 模板标签 | ||
[查看模板标签说明](template.md) | ||
[查看模板标签说明](https://www.kandaoni.com/category/10) | ||
|
||
## GoBlog 的安装 | ||
### GoBlog依赖的软件 | ||
## AnqiCMS 的安装 | ||
### AnqiCMS依赖的软件 | ||
| 软件 | 版本| | ||
|:---------|:-------:| | ||
| golang | 1.13 (及以上) | | ||
| mysql | 5.6.35 (及以上) | | ||
|
||
### 克隆代码 | ||
将`GoBlog`的代码克隆到本地任意目录,并进入该目录操作 | ||
将`AnqiCMS`的代码克隆到本地任意目录,并进入该目录操作 | ||
### 安装依赖环境 | ||
由于众所周知的原因,我们需要设置代理,在终端执行这个代码: | ||
```bash | ||
|
@@ -94,25 +100,25 @@ go env -w GOPROXY=https://goproxy.cn,direct | |
go mod tidy | ||
go mod vendor | ||
# 这是编译代码 | ||
go build -o GoBlog main/main.go | ||
go build -o anqicms main/main.go | ||
# 这是测试运行代码 | ||
go run main/main.go | ||
``` | ||
至此便可以运行网站了 | ||
### 运行GoBlog | ||
启动GoBlog | ||
### 运行AnqiCMS | ||
启动AnqiCMS | ||
```bash | ||
# 这是执行编译后的可执行文件 | ||
./GoBlog | ||
./anqicms | ||
# 这是测试运行代码 | ||
go run main/main.go | ||
``` | ||
在浏览器访问: http://127.0.0.1:8001 。初次访问,需要初始化GoBlog,在初始化界面,输入mysql信息,设置管理员账号、密码。完成后,就可以开始编写博客了。 | ||
在浏览器访问: http://127.0.0.1:8001 。初次访问,需要初始化AnqiCMS,在初始化界面,输入mysql信息,设置管理员账号、密码。完成后,就可以开始编写博客了。 | ||
### 服务端部署 | ||
|
||
下载最新的发行版:[下载发行版](https://github.com/fesiong/goblog/releases) | ||
|
||
根据你的服务器选择,linux用户,请下载goblog-linux.zip,windows用户,请下载goblog-windows.zip。 | ||
根据你的服务器选择,linux用户,请下载anqicms-linux.zip,windows用户,请下载anqicms-windows.zip。 | ||
|
||
将压缩包上传的网站根目录。 | ||
|
||
|
@@ -121,14 +127,15 @@ go run main/main.go | |
一般上,还需要配置nginx代理,来使用80端口或https端口。 | ||
nginx代理代码如下: | ||
```bash | ||
location @GoBlog { | ||
location @AnqiCMS { | ||
proxy_pass http://127.0.0.1:8001; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
} | ||
error_page 404 =200 @AnqiCMS; | ||
location / { | ||
try_files $uri $uri/index.html @GoBlog; | ||
try_files $uri $uri/index.html @AnqiCMS; | ||
} | ||
``` | ||
|
||
|
@@ -137,17 +144,18 @@ nginx代理代码如下: | |
server | ||
{ | ||
listen 80; | ||
server_name dev.goblog.com m.goblog.com; | ||
server_name dev.anqicms.com m.anqicms.com; | ||
root /data/wwwroot/irisweb/public; | ||
location @GoBlog { | ||
location @AnqiCMS { | ||
proxy_pass http://127.0.0.1:8001; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
} | ||
error_page 404 =200 @AnqiCMS; | ||
location / { | ||
try_files $uri $uri/index.html @GoBlog; | ||
try_files $uri $uri/index.html @AnqiCMS; | ||
} | ||
access_log off; | ||
} | ||
|
@@ -162,13 +170,13 @@ server | |
#!/bin/bash | ||
### check 502 | ||
# author fesion | ||
# the bin name is goblog | ||
BINNAME=goblog | ||
# 设置goblog目标目录 | ||
BINPATH=/你存放goblog的目录 | ||
# the bin name is anqicms | ||
BINNAME=anqicms | ||
# 设置anqicms目标目录 | ||
BINPATH=/你存放anqicms的目录 | ||
|
||
# check the pid if exists | ||
exists=`ps -ef | grep '\<goblog\>' |grep -v grep |wc -l` | ||
exists=`ps -ef | grep '\<anqicms\>' |grep -v grep |wc -l` | ||
echo "$(date +'%Y%m%d %H:%M:%S') $BINNAME PID check: $exists" >> $BINPATH/check.log | ||
echo "PID $BINNAME check: $exists" | ||
if [ $exists -eq 0 ]; then | ||
|
@@ -206,6 +214,6 @@ fi | |
![扫码入群讨论](https://www.kandaoni.com/uploads/20213/3/thumb_1525154eb779f3c7.png) | ||
|
||
## License | ||
The MIT License (MIT) | ||
AnqiCMS 最终用户授权协议 | ||
|
||
Copyright (c) 2019-NOW Fesion <[email protected]> |
Oops, something went wrong.