20230905074116_set_elastic_search_ssl.rb 592 B

123456789101112131415161718
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class SetElasticSearchSSL < ActiveRecord::Migration[6.1]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.create_if_not_exists(
  7. title: 'Elasticsearch SSL verification',
  8. name: 'es_ssl_verify',
  9. area: 'SearchIndex::Elasticsearch',
  10. description: 'Defines Elasticsearch SSL verification.',
  11. state: false,
  12. preferences: { online_service_disable: true },
  13. frontend: false
  14. )
  15. end
  16. end