File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
+ require "sidekiq/web"
4
+ require "sidekiq/throttled/web"
5
+
3
6
Rails . application . routes . draw do
4
7
# Redirect www subdomain to root in production envs
5
8
unless Rails . env . local?
38
41
39
42
mount GoodJob ::Engine => "/good-job"
40
43
44
+ Sidekiq ::Web . use Rack ::Auth ::Basic do |username , password |
45
+ ActiveSupport ::SecurityUtils . secure_compare (
46
+ Rails . application . credentials . support_username ,
47
+ username
48
+ ) &&
49
+ ActiveSupport ::SecurityUtils . secure_compare (
50
+ Rails . application . credentials . support_password ,
51
+ password
52
+ )
53
+ end
54
+ mount Sidekiq ::Web => "/sidekiq"
55
+
41
56
get "/start" , to : "pages#start"
42
57
get "/dashboard" , to : "dashboard#index"
43
58
get "/accessibility-statement" , to : "content#accessibility_statement"
You can’t perform that action at this time.
0 commit comments