summaryrefslogtreecommitdiff
path: root/config/smime_signature_settings.rb
blob: 3d19db84c191e186a821f28a750654ba42267e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
# Set default values for email_smime settings
class SmimeSignatureSettings
  def self.parse(email_smime)
    email_smime ||= Settingslogic.new({})
    email_smime['enabled'] = false unless email_smime['enabled']
    email_smime['key_file'] ||= Rails.root.join('.gitlab_smime_key')
    email_smime['cert_file'] ||= Rails.root.join('.gitlab_smime_cert')

    email_smime
  end
end