We have a number of services that sit behind our ha-proxy instance (i.e our app, nginx container for static assets) and requests are routed based on the virtual host. We'd like to add basic auth to our staging environment however at the moment HTTP_BASIC_AUTH is a blanket setting that covers all backends. It would be great if we could selectively disable auth being applied to a backend at a service level.
Solution
Add a property that can be applied to a linked service, EXCLUDE_BASIC_AUTH. Once set that service will be excluded from having basic auth applied to it.
Problem
We have a number of services that sit behind our
ha-proxy
instance (i.e our app, nginx container for static assets) and requests are routed based on the virtual host. We'd like to add basic auth to our staging environment however at the momentHTTP_BASIC_AUTH
is a blanket setting that covers all backends. It would be great if we could selectively disable auth being applied to a backend at a service level.Solution
Add a property that can be applied to a linked service,
EXCLUDE_BASIC_AUTH
. Once set that service will be excluded from having basic auth applied to it.