Skip to content

add proxyTable support #12

Closed
Closed
@chimurai

Description

@chimurai

Suggested in #4 (comment)

proxyTable option allows you to use a different option.target based on host request header and optional path.

Proposal:

proxyMiddleware('/api', {
  target: 'http://www.example.org',
  proxyTable : {
    'foo.com/api': 'http://website.com:8000',
    'foo.com': 'http://website.com:8001',
    'bar.com': 'http://website2.com:8002'
  }
});

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions