mirror of
https://github.com/mastodon/mastodon.git
synced 2026-02-21 23:08:30 +00:00
Add IP retention question to setup rake task
This commit is contained in:
parent
7385016837
commit
0d47437c21
|
|
@ -356,6 +356,16 @@ namespace :mastodon do
|
|||
|
||||
prompt.say "\n"
|
||||
|
||||
ip_retention_period_days = prompt.ask('How long should we store IP addresses in the database, for moderation purposes? (in days)') do |q|
|
||||
q.required true
|
||||
q.default 31
|
||||
q.convert :int
|
||||
end
|
||||
|
||||
env['IP_RETENTION_PERIOD'] = (ip_retention_period_days * 86400)
|
||||
|
||||
prompt.say "\n"
|
||||
|
||||
loop do
|
||||
if prompt.yes?('Do you want to send e-mails from localhost?', default: false)
|
||||
env['SMTP_SERVER'] = 'localhost'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user