ZBD | c7746b4 | 2025-05-10 01:42:30 +0800 | [diff] [blame] | 1 | # ========== 数据源 ========== |
ZBD | 4b0e05a | 2025-06-08 18:11:26 +0800 | [diff] [blame] | 2 | spring.datasource.url=jdbc:mysql://localhost:3306/mydatabase?serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true |
ZBD | c7746b4 | 2025-05-10 01:42:30 +0800 | [diff] [blame] | 3 | spring.datasource.username=myuser |
| 4 | spring.datasource.password=secret |
| 5 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver |
ZBD | f60356c | 2025-04-03 20:09:51 +0800 | [diff] [blame] | 6 | |
ZBD | c7746b4 | 2025-05-10 01:42:30 +0800 | [diff] [blame] | 7 | # ========== JWT 配置 ========== |
ZBD | 4b0e05a | 2025-06-08 18:11:26 +0800 | [diff] [blame] | 8 | jwt.secret=YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= |
ZBD | c7746b4 | 2025-05-10 01:42:30 +0800 | [diff] [blame] | 9 | jwt.expirationMs=3600000 |
| 10 | |
| 11 | # ========== 日志输出(可选) ========== |
| 12 | logging.level.org.springframework.security=DEBUG |
ZBD | 4b0e05a | 2025-06-08 18:11:26 +0800 | [diff] [blame] | 13 | logging.level.root=INFO |
| 14 | logging.level.org.springframework.web=DEBUG |
| 15 | logging.level.org.springframework.web.servlet=DEBUG |
| 16 | logging.level.com.example=DEBUG |
ZBD | b704c9f | 2025-05-23 21:51:39 +0800 | [diff] [blame] | 17 | |
| 18 | file.upload-dir=./torrents |
ZBD | 4b0e05a | 2025-06-08 18:11:26 +0800 | [diff] [blame] | 19 | app.torrent.download-dir=downloads |
| 20 | spring.docker.compose.enabled=false |
| 21 | spring.web.resources.static-locations=file:downloads/ |