We are using custom-nginx.template to override some of nginx server block settings .
Has anyone tried to use auth_basic and auth_basic_user_file directives of Nginx inside custom-nginx.template file ? I tried using it but somehow Kong is not loading/recongizing the .htpasswd file that has user name and encrypted password.
location /api {
** auth_basic “Restricted Area”;**
** auth_basic_user_file /etc/kong/.htpasswd; **
}