diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-02-26 01:31:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-26 01:31:44 +0100 |
commit | 5cc716688abdf7eaafc58d804209510601190791 (patch) | |
tree | 26f2f13dbc2334f11d3673183a21c942148d8632 /lib | |
parent | f0a1b1a152f8f46e2ff685b405d6361b7725f5ae (diff) |
Ensure the app does not even start if OTP_SECRET is not set (#6557)
* Ensure the app does not even start if OTP_SECRET is not set
* Remove PAPERCLIP_SECRET (it's not used by anything, actually)
Imports are for internal consumption and the url option isn't even
used correctly, so we can remove the hash stuff from them
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/mastodon.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index d2e4f38a9a5..bf4c53cb342 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -23,7 +23,7 @@ namespace :mastodon do prompt.say('Single user mode disables registrations and redirects the landing page to your public profile.') env['SINGLE_USER_MODE'] = prompt.yes?('Do you want to enable single user mode?', default: false) - %w(SECRET_KEY_BASE PAPERCLIP_SECRET OTP_SECRET).each do |key| + %w(SECRET_KEY_BASE OTP_SECRET).each do |key| env[key] = SecureRandom.hex(64) end |