You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/07/10 06:40:55 UTC

[GitHub] [servicecomb-java-chassis] cmkcmk181 edited a comment on issue #1859: 无法正确使用nacos,在nacos中配置路由不生效

cmkcmk181 edited a comment on issue #1859:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1859#issuecomment-656510363


   content和body都有值,格式都没有问题,但是路由还是不生效。直接配置在microservice.yaml中是生效的
   
   ![image](https://user-images.githubusercontent.com/8915324/87123990-673d5600-c2ba-11ea-8c48-972898722239.png)
   
   json格式如下:
   {
       "servicecomb": {
         "edge": {
           "filter": { 
             "addHeader": {
               "enabled": true,
               "allowedHeaders": "Authorization"
             }
           }
         },
         "http": {
           "dispatcher": {
             "edge": {
               "url": {
                 "enabled": true,
                 "pattern": "/(.*)",
                 "mappings": {
                   "authV1": {
                     "prefixSegmentCount": 1,
                     "path": "/api/auth/v1/.*",
                     "microserviceName": "fw-auth",
                     "versionRule": "1.0.0-2.0.0"
                   }
                 }
               }
             }
           }
         }
       }
   }
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org