Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish config to allow two locations for each API #726

Closed
adamkdean opened this issue Jun 13, 2019 · 0 comments · Fixed by #730
Closed

Publish config to allow two locations for each API #726

adamkdean opened this issue Jun 13, 2019 · 0 comments · Fixed by #730

Comments

@adamkdean
Copy link

adamkdean commented Jun 13, 2019

It would be great if Publish config would allow two locations for each API.

Currently we have:

  {
    "name": "my_cat_blog",
    "host": "http://my.cat.blog",
    "port": 80,
    ...
  }
]

But when running in Docker, we may want external traffic to go via a proxy and internal traffic to not do so, i.e. frontend -> https://my.cat.blog, backend: http://my_cat_blog_api etc.

"apis": [
  {
    "name": "my.cat.blog",
    "external": {
      "host": "https://api.my.cat.blog",
      "port": 443
    },
    "internal": {
      "host": "http://my_cat_blog_api",
      "port": 80
    }
    ...
  }
]

Pleaaaaaaase @eduardoboucas, pleaaase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants