43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
# 网关服务配置
|
|
server:
|
|
port: 8888
|
|
|
|
spring:
|
|
application:
|
|
name: wangpan-gateway
|
|
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:wangpan-secret-key-2024}
|
|
algorithm: PBEWithMD5AndDES
|
|
|
|
logging:
|
|
level:
|
|
com.wangpan: DEBUG
|
|
org.springframework.cloud.gateway: DEBUG
|