Securing Resque::Server in Rails 3
A really simple way to secure Resque::Server in a rails 3 app.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
A really simple way to secure Resque::Server in a rails 3 app.
Comments
you can do this in config.ru in your rails app
require ‘resque/server’
Resque::Server.use Rack::Auth::Basic do |username, password| username == ‘admin’ && password == ‘password’ end
rails & mount sinatrarun Rack::URLMap.new “/” => YourRailsApp::Application, “/resque” => Resque::Server.new
If you’re already using Devise you can use it to secure your mounted Resque web console: Rails 3, Resque, and Devise
@michelson - thanks for the tip.
Post a comment