Skip to content

AggregateException: The proxy config is invalid. (Route 'Transforms' requires Hosts or Path specified. Set the Path to '/{**catchall}' to match all requests.) #1393

Answered by Tratcher
madhon asked this question in Q&A
Discussion options

You must be logged in to vote

The braces are off, Transforms needs to be inside the CrmRoute route.

  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*",
  "ReverseProxy" : {
    "Routes": {
      "CrmRoute" : {
        "ClusterId": "crmCluster",
        "Match": {
          "Path": "/crm/{**catchall}"
        },
        "Transforms": [
          { "PathRemovePrefix": "/crm" },
          { "PathPrefix": "/api" },
          {
            "X-Forwarded": "Set",
            "For": "Set",
            "Proto": "Set",
            "Prefix": "Off",
            "HeaderPrefix": "X-Forwarded-"
          },
…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@madhon
Comment options

Answer selected by adityamandaleeka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants