Skip to content

Instantly share code, notes, and snippets.

@devhero
Created October 12, 2015 08:34
Show Gist options
  • Save devhero/3a4b16da92e560db3b8e to your computer and use it in GitHub Desktop.
Save devhero/3a4b16da92e560db3b8e to your computer and use it in GitHub Desktop.
sidekiq web password protected
# routes.rb
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