ETL/etl-gateway/target/classes/bootstrap.yml

40 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

server:
port: 18080
spring:
application:
name: engine-gateway
profiles:
active: dev
cloud:
nacos:
#注册服务
discovery:
server-addr: 115.159.33.152:8848
namespace: f9f293d4-55ce-45c1-aa15-124ca461c060
# 配置
config:
server-addr: 115.159.33.152:8848
namespace: f9f293d4-55ce-45c1-aa15-124ca461c060
# 配置文件格式
file-extension: yml
logging:
level:
com.bwie: DEBUG
auth:
jwt:
enabled: true # 是否开启JWT登录认证功能
secret: passjava # JWT 私钥用于校验JWT令牌的合法性
expiration: 3600000 # JWT 令牌的有效期用于校验JWT令牌的合法性一个小时
header: Authorization # HTTP 请求的 Header 名称,该 Header作为参数传递 JWT 令牌
userParamName: userId # 用户登录认证用户名参数名称
pwdParamName: password # 用户登录认证密码参数名称
useDefaultController: true # 是否使用默认的JwtAuthController
skipValidUrl: /auth/login
ignore:
whites: # 自定义白名单
- /auth/login
- /auth/token/refresh