Skip to content

Commit

Permalink
Merge pull request #1314 from dradis/resque/disable-web
Browse files Browse the repository at this point in the history
Disable resque web
  • Loading branch information
aapomm authored Nov 6, 2024
2 parents 2f44069 + 3984bd2 commit ed5d32f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
bundler-cache: true
- name: Security audit dependencies
run: bundle exec bundler-audit --update --ignore CVE-2023-50724 CVE-2023-50725 CVE-2023-50727
run: bundle exec bundler-audit --update --ignore CVE-2023-50724 CVE-2023-50725 CVE-2023-50727 CVE-2024-21510
- name: Security audit ruby
run: bundle exec ruby-audit update && bundle exec ruby-audit check --ignore CVE-2021-33621 CVE-2024-27282
- name: Security audit application code
Expand Down
11 changes: 6 additions & 5 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ Rails.application.load_server

# Mount the Resque web interface in development. In production is already
# available through the CIC.
if defined?(Rails) && Rails.env.development?
map '/jobs' do
run Resque::Server
end
end
#
# if defined?(Rails) && Rails.env.development?
# map '/jobs' do
# run Resque::Server
# end
# end
5 changes: 1 addition & 4 deletions config/initializers/resque.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@
logfile.sync = true
Resque.logger = Logger.new(logfile)
Resque.logger.level = Logger::INFO
Resque.logger.info "Resque Logger Initialized"
# Resque::Server.use(Rack::Auth::Basic) do |user, password|
# user == 'admin' && password == 'dradispro'
# end
Resque.logger.info 'Resque Logger Initialized'

0 comments on commit ed5d32f

Please sign in to comment.