entorno por defecto
This commit is contained in:
parent
f2683c3a5a
commit
11c4713839
2 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
RAILS_ENV=
|
RAILS_ENV=
|
||||||
IMAP_SERVER=
|
IMAP_SERVER=
|
||||||
DEFAULT_FROM=
|
DEFAULT_FROM=
|
||||||
|
EXCEPTION_TO=
|
||||||
SKEL_SUTTY=https://0xacab.org/sutty/skel.sutty.nl
|
SKEL_SUTTY=https://0xacab.org/sutty/skel.sutty.nl
|
||||||
# XXX: Si cambiás esta variable, tenés que editar config/webpacker.yml también :(
|
# XXX: Si cambiás esta variable, tenés que editar config/webpacker.yml también :(
|
||||||
SUTTY=sutty.local
|
SUTTY=sutty.local
|
||||||
|
|
|
@ -145,14 +145,14 @@ Rails.application.configure do
|
||||||
domain: ENV.fetch('SUTTY', 'sutty.nl'),
|
domain: ENV.fetch('SUTTY', 'sutty.nl'),
|
||||||
enable_starttls_auto: false
|
enable_starttls_auto: false
|
||||||
}
|
}
|
||||||
config.action_mailer.default_options = { from: ENV['DEFAULT_FROM'] }
|
config.action_mailer.default_options = { from: ENV.fetch('DEFAULT_FROM', "noreply@sutty.nl") }
|
||||||
|
|
||||||
config.middleware.use ExceptionNotification::Rack,
|
config.middleware.use ExceptionNotification::Rack,
|
||||||
error_grouping: true,
|
error_grouping: true,
|
||||||
email: {
|
email: {
|
||||||
email_prefix: '',
|
email_prefix: '',
|
||||||
sender_address: ENV['DEFAULT_FROM'],
|
sender_address: ENV.fetch('DEFAULT_FROM', "noreply@sutty.nl"),
|
||||||
exception_recipients: ENV['EXCEPTION_TO'],
|
exception_recipients: ENV.fetch('EXCEPTION_TO', "errors@sutty.nl"),
|
||||||
normalize_subject: true
|
normalize_subject: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue