mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
allow to use separate encryption key via env
This commit is contained in:
1 parent
a728aa8689
commit
71c61fc4b3
1 file changed
+1
-1
@@ -108,7 +108,7 @@ Rails.application.configure do
|
||||
logger.formatter = config.log_formatter
|
||||
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
||||
|
||||
encryption_secret = Digest::SHA256.hexdigest(ENV['SECRET_KEY_BASE'].to_s)
|
||||
encryption_secret = ENV['ENCRYPTION_SECRET'].presence || Digest::SHA256.hexdigest(ENV['SECRET_KEY_BASE'].to_s)
|
||||
|
||||
config.active_record.encryption = {
|
||||
primary_key: encryption_secret.first(32),
|
||||
|
||||
Reference in new issue
Block a user