I have an nginx in front of an apt-cacher-ng. The nginx's job is to terminate HTTPS and take care of authentication.
The issue is, that nginx will look in the Authorization
header for credentials, but when I configure apt to use a proxy, it will send the credentials in the Proxy-Authorization
header. So apt gets 401
as a response.
Is there a way to make nginx look for credentials in the Proxy-Authorization
header?