Created
June 10, 2013 22:56
-
-
Save darkside/5753187 to your computer and use it in GitHub Desktop.
Protect sidekiq dashboard with nginx basic auth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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