# 网关服务配置 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/** 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