5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 10:36:22 +00:00
panel/config/initializers/que_web.rb
2024-05-02 16:05:35 -03:00

5 lines
184 B
Ruby

# frozen_string_literal: true
Que::Web.use(Rack::Auth::Basic) do |user, password|
[user, password] == [ENV.fetch('HTTP_BASIC_USER', nil), ENV.fetch('HTTP_BASIC_PASSWORD', nil)]
end