5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 12:26:21 +00:00
panel/config/initializers/que_web.rb

6 lines
184 B
Ruby
Raw Normal View History

# frozen_string_literal: true
Que::Web.use(Rack::Auth::Basic) do |user, password|
2024-05-02 19:05:35 +00:00
[user, password] == [ENV.fetch('HTTP_BASIC_USER', nil), ENV.fetch('HTTP_BASIC_PASSWORD', nil)]
end