Skip to content

Commit

Permalink
Secure sidekiq dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahW91 committed Apr 8, 2024
1 parent e120966 commit af8617b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,5 +238,7 @@
delete '/users/:id' => 'users#destroy', :as => :destroy_user

require 'sidekiq/web'
mount Sidekiq::Web => '/sidekiq'
authenticate :user, lambda { |u| u.admin? } do
mount Sidekiq::Web => '/sidekiq'
end
end

0 comments on commit af8617b

Please sign in to comment.