Created
August 31, 2016 10:23
-
-
Save amitpatelx/29b7bde94be4015746ab770840b86c96 to your computer and use it in GitHub Desktop.
Configure Sidekiq web interface
This file contains hidden or 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
require 'sidekiq/web' | |
Sidekiq::Web.use Rack::Auth::Basic do |username, password| | |
username == ENV["SIDEKIQ_USERNAME"] && password == ENV["SIDEKIQ_PASSWORD"] | |
end if Rails.env.production? | |
mount Sidekiq::Web => '/sidekiq' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment