mirror of https://github.com/docusealco/docuseal
parent
6f3fe1dd7b
commit
7ed1b71a6b
@ -0,0 +1,16 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
if defined?(Sidekiq)
|
||||||
|
require 'sidekiq/web'
|
||||||
|
|
||||||
|
Sidekiq::Web.use(Rack::Auth::Basic) do |_, password|
|
||||||
|
next true if Rails.env.development?
|
||||||
|
|
||||||
|
ActiveSupport::SecurityUtils.secure_compare(
|
||||||
|
Digest::SHA256.hexdigest(password),
|
||||||
|
Digest::SHA256.hexdigest(ENV.fetch('SIDEKIQ_BASIC_AUTH_PASSWORD'))
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
Sidekiq.strict_args!
|
||||||
|
end
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
queues:
|
||||||
|
- [default, 1]
|
||||||
|
- [mailers, 1]
|
||||||
|
|
||||||
|
production:
|
||||||
|
:concurrency: 15
|
||||||
Loading…
Reference in new issue