-
Notifications
You must be signed in to change notification settings - Fork 0
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
2 changed files
with
37 additions
and
0 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 |
---|---|---|
@@ -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签名密钥 // 请设置为任意长度的随机值 |
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,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 |