mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Make encryption config optional for self hosting users (#1476)
* Fix redirect 404 bug * Make encryption optional for self-hosters * Fix test
This commit is contained in:
parent
69f6d7f8ea
commit
0af5faaa9f
4 changed files with 19 additions and 3 deletions
|
@ -30,5 +30,10 @@ module Maybe
|
|||
config.i18n.fallbacks = true
|
||||
|
||||
config.app_mode = (ENV["SELF_HOSTED"] == "true" || ENV["SELF_HOSTING_ENABLED"] == "true" ? "self_hosted" : "managed").inquiry
|
||||
|
||||
# Self hosters can optionally set their own encryption keys if they want to use ActiveRecord encryption.
|
||||
if Rails.application.credentials.active_record_encryption.present?
|
||||
config.active_record.encryption = Rails.application.credentials.active_record_encryption
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue