mirror of
https://github.com/skyle1995/NetworkAuth.git
synced 2026-05-25 02:24:05 +08:00
48 lines
914 B
JSON
48 lines
914 B
JSON
{
|
|
"server": {
|
|
"host": "0.0.0.0",
|
|
"port": 8080,
|
|
"mode": "debug",
|
|
"dist": ""
|
|
},
|
|
"database": {
|
|
"type": "sqlite",
|
|
"mysql": {
|
|
"host": "localhost",
|
|
"port": 3306,
|
|
"username": "root",
|
|
"password": "password",
|
|
"database": "networkdev",
|
|
"charset": "utf8mb4",
|
|
"max_idle_conns": 10,
|
|
"max_open_conns": 100
|
|
},
|
|
"sqlite": {
|
|
"path": "./database.db"
|
|
}
|
|
},
|
|
"redis": {
|
|
"host": "localhost",
|
|
"port": 6379,
|
|
"password": "",
|
|
"db": 0
|
|
},
|
|
"log": {
|
|
"level": "info",
|
|
"file": "./logs/app.log",
|
|
"max_size": 100,
|
|
"max_backups": 5,
|
|
"max_age": 30
|
|
},
|
|
"security": {
|
|
"jwt_secret": "your-jwt-secret-key",
|
|
"encryption_key": "your-encryption-key",
|
|
"jwt_refresh_threshold_hours": 6,
|
|
"cookie": {
|
|
"secure": false,
|
|
"same_site": "Lax",
|
|
"domain": "",
|
|
"max_age": 86400
|
|
}
|
|
}
|
|
} |