I have a nginx server with basic auth
location / {
root /var/www/mywebsite.com;
index index.html index.htm;
auth_basic "Restricted"; #For Basic Auth
auth_basic_user_file /etc/nginx/.htpasswd; #For Basic Auth
}
The server is behind an HAProxy Load Balancer. is there a way that I can have the load balancer send the username and password to nginx to authenticate?