Skip to content

Instantly share code, notes, and snippets.

@darkside
Created June 10, 2013 22:56
Show Gist options
  • Save darkside/5753187 to your computer and use it in GitHub Desktop.
Save darkside/5753187 to your computer and use it in GitHub Desktop.
Protect sidekiq dashboard with nginx basic auth
location /sidekiq {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/htpasswd;
if (!-f $request_filename) {
proxy_pass http://unicorn;
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment