Skip to content

Commit

Permalink
add busuanzi
Browse files Browse the repository at this point in the history
  • Loading branch information
DejavuMoe committed May 10, 2023
1 parent 0682f0f commit 218d375
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
15 changes: 15 additions & 0 deletions busuanzi/data/busuanzi/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Web:
Address: 0.0.0.0:8080 # 监听地址
Access-Control-Allow-Origin: "https://bsz.yourdomain.com" # 跨域访问
Debug: false # 是否开启debug模式
Log: true # 是否开启日志
Redis:
Address: redis:6379 # redis地址
Password:
Database: 0
Prefix: bsz # redis前缀
MaxIdle: 25 # 最大空闲连接数
MaxActive: 100 # 最大连接数
Bsz:
Expire: 2592000 # 统计数据过期时间 单位秒, 请输入整数 (无任何访问, 超过这个时间后, 统计数据将被清空, 0为不过期)
JwtSecret: "bsz" # JWT签名密钥 // 请设置为任意长度的随机值
22 changes: 22 additions & 0 deletions busuanzi/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: "3"
services:
redis:
image: "redis:alpine"
restart: always
volumes:
- ./data/redis:/data

busuanzi:
image: "dejavumoe/busuanzi:latest"
restart: always
ports:
- "127.0.0.1:8956:8080"
volumes:
- ./data/busuanzi:/app/expose
links:
- redis
depends_on:
- redis
environment:
LOG_ENABLE: true
API_SERVER: http:\/\/127.0.0.1:8080\/api

0 comments on commit 218d375

Please sign in to comment.