From 3a0ce7e61b0143aff89a879c04ff7a2b6494aafd Mon Sep 17 00:00:00 2001 From: Phlegx Systems OG Date: Fri, 22 Apr 2022 21:57:48 +0200 Subject: [PATCH] Set Sidekiq Web session secret same as Rack secret. --- config.ru | 1 + 1 file changed, 1 insertion(+) diff --git a/config.ru b/config.ru index 3fe5e14..b2c3d92 100644 --- a/config.ru +++ b/config.ru @@ -17,6 +17,7 @@ require './redis_config' # Add Rack session cookie secret. File.open('.session.key', 'w') { |f| f.write(SecureRandom.hex(32)) } use Rack::Session::Cookie, secret: File.read('.session.key'), same_site: true, max_age: 86_400 +Sidekiq::Web.set :session_secret, File.read('.session.key') # Create Redis instance. redis = proc {