# htpasswd file is relative to nginx conf
location  /  {
  auth_basic            "Restricted";
  auth_basic_user_file  conf/htpasswd;
}