Skip to content

Instantly share code, notes, and snippets.

@johanbaaij
johanbaaij / http-auth.conf
Created February 4, 2020 01:17 — forked from darkside/nginx_auth_basic
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;
}
}