Repo discovery doesn't work when running behind a proxy
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1121553
Description of problem:
When the access to the internet is restricted by a proxy, the repo discovery
doesn't work, reporting success with no repositoried found
No repositories discovered
The proxy settings are used and repositories are discovered
Fixes #6993: Allow repo-discovery through a proxy.
Note that the Anemone gem allows the passing of proxy_host and proxy_port
by default but does not currently support proxy user and password.
In order to get around this, a monkey patch is applied to anemone
to allow passing user and port.
Fixes #6993: Ensure repo discovery proxy setup is loaded in production.
Without this change, repo discovery behind a proxy works within the
Rails development environment. However, the monkey patch to Anemone
to enable authenticated proxies is not loaded in production.