Skip to content

Commit

Permalink
tag: 126
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Jun 25, 2022
1 parent 27fd571 commit b74ae9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

# 安装

1. git clone -b 125 --depth=1 https://github.com/soxft/busuanzi.git && cd busuanzi
2. go build -o busuanzi main.go
1. `git clone -b 126 --depth=1 https://github.com/soxft/busuanzi.git && cd busuanzi`
2. `go build -o busuanzi main.go`
3. 根据提示修改 config.yml
4. 编辑 dist/busuanzi.js 替换链接为自己的, 也可以编辑ts文件自行编译
5. 运行二进制文件
5. 通过命令 `./busuanzi -c config.yaml` 启动程序
2 changes: 1 addition & 1 deletion app/middleware/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
func Cors() gin.HandlerFunc {
return func(c *gin.Context) {
c.Header("Access-Control-Allow-Origin", config.Web.Cors)
c.Header("Server", "busuanzi-by-xcsoft/2.7.1")
c.Header("Server", "busuanzi-by-xcsoft/2.7.2")
if c.Request.Method == "OPTIONS" {
c.Header("Access-Control-Allow-Methods", "GET, POST, HEAD, OPTIONS")
c.Header("Access-Control-Allow-Headers", "x-bsz-referer, Authorization")
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Redis:
MaxActive: 100 # 最大连接数
Bsz:
Expire: 2592000 # 统计数据过期时间 单位秒, 请输入整数 (无任何访问, 超过这个时间后, 统计数据将被清空, 0为不过期)
JwtSecret: "bsz" # JWT签名密钥
JwtSecret: "bsz" # JWT签名密钥 // 请设置为任意长度的随机值

0 comments on commit b74ae9a

Please sign in to comment.