java/wangpan-gateway/target/classes/application.yml
liRQ 9f19d64afb feat: 新增OpenList集成功能,完善TMDB刮削与配置加密
1.  新增用户OpenList连接配置模块,包括数据库表、实体类与相关服务
2.  为驱动服务添加定时心跳检测功能,监控OpenList连接状态
3.  重构电影实体与数据库字段,移除冗余的overview字段,统一使用description存储简介
4.  完善TMDB刮削逻辑,增加空指针校验与详细失败日志
5.  配置文件敏感信息加密,添加加密脚本工具
6.  新增网关路由规则支持OpenList接口
7.  完善刮削日志查询功能,支持查看详细执行结果
2026-06-27 17:29:36 +08:00

65 lines
1.6 KiB
YAML

# 网关服务配置
server:
port: 8888
spring:
application:
name: wangpan-gateway
codec:
max-in-memory-size: 10MB
cloud:
gateway:
routes:
# 用户服务路由
- id: wangpan-user-service
uri: http://localhost:8081
predicates:
- Path=/api/login,/api/register,/api/token/**,/api/login-logs/**,/api/users/**
filters:
- StripPrefix=0
# 网盘服务路由
- id: wangpan-drive-service
uri: http://localhost:8082
predicates:
- Path=/api/drive/**,/api/icon/**,/api/openlist/**
filters:
- StripPrefix=0
# TMDB服务路由
- id: wangpan-tmdb-service
uri: http://localhost:8083
predicates:
- Path=/api/movies/**,/api/tmdb/**,/api/tmdb-scraper/**
filters:
- StripPrefix=0
# Jasypt 加密配置
jasypt:
encryptor:
password: ${JASYPT_ENCRYPTOR_PASSWORD}
algorithm: PBEWITHHMACSHA512ANDAES_256
key-obtention-iterations: 1000
pool-size: 1
salt-generator-classname: org.jasypt.salt.RandomSaltGenerator
iv-generator-classname: org.jasypt.iv.RandomIvGenerator
string-output-type: base64
# Actuator 监控端点配置
management:
endpoints:
web:
exposure:
include: prometheus,health,info
metrics:
export:
prometheus:
enabled: true
tags:
application: ${spring.application.name}
logging:
level:
com.wangpan: INFO
org.springframework.cloud.gateway: INFO
file:
path: /opt/wangpan/logs