environment.rb 959 B

123456789101112131415161718
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class SystemReport::Plugin::Environment < SystemReport::Plugin
  3. DESCRIPTION = __('Configuration of performance settings via environment variables.').freeze
  4. def fetch
  5. {
  6. 'RAILS_LOG_TO_STDOUT' => ENV['RAILS_LOG_TO_STDOUT'].present?,
  7. 'ZAMMAD_SAFE_MODE' => ENV['ZAMMAD_SAFE_MODE'].present?,
  8. 'ZAMMAD_RAILS_PORT' => ENV['ZAMMAD_RAILS_PORT'].present?,
  9. 'ZAMMAD_WEBSOCKET_PORT' => ENV['ZAMMAD_WEBSOCKET_PORT'].present?,
  10. 'WEB_CONCURRENCY' => ENV['WEB_CONCURRENCY'],
  11. 'ZAMMAD_SESSION_JOBS_CONCURRENT' => ENV['ZAMMAD_SESSION_JOBS_CONCURRENT'],
  12. 'ZAMMAD_PROCESS_SCHEDULED_JOBS_WORKERS' => ENV['ZAMMAD_PROCESS_SCHEDULED_JOBS_WORKERS'],
  13. 'ZAMMAD_PROCESS_DELAYED_JOBS_WORKERS' => ENV['ZAMMAD_PROCESS_DELAYED_JOBS_WORKERS'],
  14. }
  15. end
  16. end