thingsboard-gateway-ws-demo/src/main/resources/application.yml

38 lines
950 B
YAML
Raw Normal View History

2025-12-04 15:36:02 +08:00
server:
port: 8080
spring:
application:
name: thingsboard-gateway-ws
cloud:
gateway:
routes:
- id: websocket-route
uri: ws://iot.t-aaron.com:18080
predicates:
- Path=/ws/api/**
filters:
- StripPrefix=1
- name: WebSocketFilter
# 启用 JWT 认证(默认为 false即不启用
# spring.security.oauth2.resourceserver.jwt.enabled: false
# 如果需要启用 JWT 认证,请配置以下内容:
# spring:
# security:
# oauth2:
# resourceserver:
# jwt:
# enabled: true
# issuer-uri: https://your-auth-server.com
# # 或者使用 jwk-set-uri:
# # jwk-set-uri: https://your-auth-server.com/.well-known/jwks.json
logging:
level:
org.springframework.cloud.gateway: DEBUG
org.springframework.web.reactive: DEBUG
org.springframework.security: DEBUG
com.tuoheng.gateway: DEBUG