Skip to content

Instantly share code, notes, and snippets.

@kisai
Created August 27, 2014 17:28
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 kisai/cc4b3c294f30827103e6 to your computer and use it in GitHub Desktop.
Save kisai/cc4b3c294f30827103e6 to your computer and use it in GitHub Desktop.
#source http://stackoverflow.com/questions/12265421/sidekiq-authentication
require 'sidekiq'
require 'sidekiq/web'
Sidekiq::Web.use(Rack::Auth::Basic) do |user, password|
[user, password] == ["sidekiqadmin", "yourpassword"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment