2023-08-02 15:23:39 +08:00

36 lines
884 B
YAML

server:
port: 9090
spring:
profiles:
# 环境配置
active: dev
application:
name: qiuguo-iot-gateway
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 192.168.8.101:8848
config:
# 配置中心地址
server-addr: 192.168.8.101:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
gateway:
globalcors:
corsConfigurations:
'[/**]':
# ????????
allow-credentials: true
# ??????(????/ip)???*???
allowedOriginPatterns: "*"
# ?????method? ???GET?OPTIONS???*???
allowedMethods: "*"
# ????????head?????*???
allowedHeaders: "*"
routes: