title: Using GitLab behind nginx enabled basic_auth?
body: <p>I've successfully installed GitLab for management of private repositories (it's quite awesome!). </p>
  
  <p>The problem I am having is by default, Gitlab login is presented when anyone hits my subdomain. I would like to protect the entire area with a basic_auth layer before the user gets the GitLab login screen.  Unfortunately, this breaks my ability to push/pull from GitLab when it's enabled. </p>
  
  <p>my nginx config to enable basic_auth:</p>
  
  <pre><code>  auth_basic            "Restricted";
    auth_basic_user_file  htpasswd;
  </code></pre>
  
  <p>Any ideas on how I can enable basic_auth without breaking git / gitlab functionality?</p>