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

38 lines
950 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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