You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using go-esi in an Traefik + Kubernetes Setup, so I'll explain the feature request based on that.
It would be nice if one could add in the ESI Middleware config, what (local) host would be used, when a relative URL is used for an include. That would make some setups easier, where a single Traefik is routing multiple apps.
Right now, a relative url like /my-esi-content/whatever will be run against the localhost of the Traefik Pod itself. It would make sense to define per Middleware, what the default host is.
I'd prefer the full solution, as it is the "Kubernetes way" of fully defining the Service and you'd have all the benefits of having references etc.
Why not defining the host in the ESI include itself?
One might ask, why I'm not defining the host in my HTML file directly instead of using relative URLS. While this is of course possible, it would mean, I couldn't reuse any built applications to deploy in other environments. Right now, I need to rebuild my application for dev, testing, prod - only because the host for my ESI includes changes. If I could move this parametrization into the Middleware config, I could reuse my container and simply edit the config.
The text was updated successfully, but these errors were encountered:
Description
I'm using go-esi in an Traefik + Kubernetes Setup, so I'll explain the feature request based on that.
It would be nice if one could add in the ESI Middleware config, what (local) host would be used, when a relative URL is used for an include. That would make some setups easier, where a single Traefik is routing multiple apps.
Right now, a relative url like
/my-esi-content/whatever
will be run against the localhost of the Traefik Pod itself. It would make sense to define per Middleware, what the default host is.Example
Simple solution:
Full solution:
I'd prefer the full solution, as it is the "Kubernetes way" of fully defining the Service and you'd have all the benefits of having references etc.
Why not defining the host in the ESI include itself?
One might ask, why I'm not defining the host in my HTML file directly instead of using relative URLS. While this is of course possible, it would mean, I couldn't reuse any built applications to deploy in other environments. Right now, I need to rebuild my application for dev, testing, prod - only because the host for my ESI includes changes. If I could move this parametrization into the Middleware config, I could reuse my container and simply edit the config.
The text was updated successfully, but these errors were encountered: