Skip to content

Instantly share code, notes, and snippets.

@johanbaaij
Forked from darkside/nginx_auth_basic
Created February 4, 2020 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johanbaaij/a69f1c1a095447dc1b9dffe2ef39179b to your computer and use it in GitHub Desktop.
Save johanbaaij/a69f1c1a095447dc1b9dffe2ef39179b 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://dokku-app-name:5000;
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment