spring: cloud: inetutils: preferredNetworks: - 192.168 #注册到nacos中心优先匹配的IP gateway: routes: - id: api-interface uri: lb://api-interface predicates: - Path=/api-interface/** filters: # 转发时去掉一层路径 - StripPrefix=1 - id: heyu-api-websocket uri: lb://heyu-api-websocket predicates: - Path=/api-websocket/** filters: # 转发时去掉一层路径 - StripPrefix=1 globalcors: corsConfigurations: '[/**]': # 允许携带认证信息 allow-credentials: true # 允许跨域的源(网站域名/ip),设置*为全部 allowedOriginPatterns: "*" # 允许跨域的method, 默认为GET和OPTIONS,设置*为全部 allowedMethods: "*" # 允许跨域请求里的head字段,设置*为全部 allowedHeaders: "*" config: # 如果本地配置优先级高,那么 override-none 设置为 true,包括系统环境变量、本地配置文件等配置 override-none: true # 如果想要远程配置优先级高,那么 allow-override 设置为 false,如果想要本地配置优先级高那么 allow-override 设置为 true allow-override: true # 只有系统环境变量或者系统属性才能覆盖远程配置文件的配置,本地配置文件中配置优先级低于远程配置;注意本地配置文件不是系统属性 override-system-properties: false nacos: discovery: # 服务注册地址 server-addr: nacos.iwulin.tech:30571 namespace: ${spring.profiles.active} password: hz_HeYu@202518 config: namespace: ${spring.profiles.active} # 配置中心地址 server-addr: nacos.iwulin.tech:30571 password: hz_HeYu@202518 # 配置文件格式 file-extension: yml # 共享配置 #shared-configs: # - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} redis: password: O^pv_3#slxQ port: 32048 host: rrdd.iwulin.tech timeout: 5000 # 安全配置 security: # 防止XSS攻击 xss: enabled: false # 排除的路径 exclude-urls: - /api-user/user/login/pwd - /api-user/ip/api/getIp - /api-websocket/push/message - /api-websocket/websocket/box - /api-websocket/websocket/customer - /api-websocket/websocket/tts/token - /api-websocket/websocket/init/sysTalkAnswer # ip免登白名单 auth-ip: #127.0.0.1,192.168.8.141 #免登,免校验url auth-urls: - /actuator - /websocket #application: # cors: # allowed-crigin-patterns: # - /api-user/user/user/login/pwd