Note that there are some explanatory texts on larger screens.

plurals
  1. POResque to connect to Redis with AUTH
    primarykey
    data
    text
    <p>Need some help connecting Resque Web UI (Rack config.ru) to a Redis server with AUTH</p> <p>Using Resque + Unicorn + Nginx and installed most using apt-get install (Debian) and gem install</p> <p>So basically Unicorn loads up resque-web (via Rack) using the standard config.ru</p> <p><a href="http://etagwerker.wordpress.com/2011/06/27/how-to-setup-resque-web-with-nginx-and-unicorn/" rel="nofollow">http://etagwerker.wordpress.com/2011/06/27/how-to-setup-resque-web-with-nginx-and-unicorn/</a></p> <pre><code>#!/usr/bin/env ruby # Put this in /var/www/resque-web/config.ru require 'logger' $LOAD_PATH.unshift ::File.expand_path(::File.dirname(__FILE__) + '/lib') require 'resque/server' Resque::Server.use Rack::Auth::Basic do |username, password| password == '{{password}}' # password end # Set the RESQUE_CONFIG env variable if you’ve a `resque.rb` or similar # config file you want loaded on boot. if ENV['RESQUECONFIG'] &amp;&amp; ::File.exists?(::File.expand_path(ENV['RESQUE_CONFIG'])) load ::File.expand_path(ENV['RESQUE_CONFIG']) end use Rack::ShowExceptions run Resque::Server.new </code></pre> <p>I'm trying to find out how to connect this to a Redis server with AUTH per the documentation here: <a href="http://redis.io/topics/security" rel="nofollow">http://redis.io/topics/security</a> (basically in /etc/redis/redis.conf)</p> <p>This rack configuration seem to only connection to a "vanilla" Redis server using defaults (localhost with standard 6379 port) -- how do I specify the Redis connection so I can pass the user/pass in the format below </p> <pre><code>redis://user:PASSWORD@redis-server:6379 </code></pre> <p>I've tried using ENV['RESQUE_CONFIG'] to load up a resque.rb file </p> <p>require 'resque'</p> <p>Resque.redis = Redis.new(:password => '{{password}}')</p> <p>this gets pulled via /etc/unicorn/resque-web.conf</p> <pre><code># Put this in /etc/unicorn/resque-web.conf RAILS_ROOT=/var/www/resque-web RAILS_ENV=production RESQUE_CONFIG=/var/www/resque-web/config/resque.rb </code></pre> <p>but it's still not really working</p> <hr> <p>BTW, everything works without the Redis AUTH and just using the "vanilla" localhost Redis connection</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload