Welcome to mirror list, hosted at ThFree Co, Russian Federation.

0_license.rb « initializers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e7b46a1463019e5449be0703c148f3d9a59205d1 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

Gitlab.ee do
  public_key_file = File.read(Rails.root.join(".license_encryption_key.pub"))
  public_key = OpenSSL::PKey::RSA.new(public_key_file)
  Gitlab::License.encryption_key = public_key
rescue
  warn "WARNING: No valid license encryption key provided."
end