Production email setup

This commit is contained in:
Trevor Vallender 2024-06-19 16:28:39 +01:00
parent a456212ccf
commit 0ef2d0b23c
3 changed files with 13 additions and 2 deletions

View File

@ -1 +1 @@
RWzqbXYOBdxgpheefubYOD+li8SgrYjDuQjZ3SxRbSI8HhMmEi0iSuGUFBl/OlRTmhmUcswbpO4QXmcuS/Ej8dxz2WZ03RnozYO3ftYGSMQy23mqJx4WGxG+Z3p5hxSmeJ4bLoM91bQPkwYJGGi2ZLZXb6+QLopTtBHCZ17dmlvCE22F6zz70KZVgLN76jMTtjfLTQc5XrIdg23rFQfkgsSTrX9spKr/6mgUAILRQ/baPzlT43v9z13YfA8xe3BM/Giv7tBTmnZ6SVs12TT7jcsp5RfdWyxHHgpKUf0E1Mz5P98xOabo/pWYL3TQ8AzkW2y7G8q3WaR8FLpS80UOSBTgx0/iE6Josoc8Kql22VInLJMUz4+Haxt3t22dU2DE4ERmEjvhgCBTFgw6NyBy+tPxmdIh--mZf16ejQbkcvs4cT--V5RGldMxw37X+LXoyc8XYw== atKhynQXkpwmrzii63fd1Jb1JTP4VZVvVyMgI4/jBGtMjZ+8NPSJrwtxuEJB7WZ1Yf2lczk1DNX0aHDWwju9TsUyG0NP3YKIAViek6NWddyOwFKsRrRtvVwYO+KAr6futrfQScbVjb6486+HUl4cLMFuy1wzQPrmmA6c1MIAsHl52sF/CMo5CZfopw7y1db6mMU84cUk24Ni4om5deAZ5lWk9i5kthWo4XsUM0VmGUmdrX0Ut30IxoSmgwCOztus+kMJu/mzwmI65Z+h6edTWJHF1pJg8+7BFubd3Eh4QK6f0ZvUG5JT9ErBbiTNI1QUxxI5eijhBBsSBHeMyMsVV7OCc7zWV/dwvKIZs0SSq96T3FZJbBcmZ7Tf7iWHyUriDbl0ZXrL1KBq7lvGcSJn/yRCiM3CXzWbvAk+71MSttiP3U7ku2yk8iC/83Tb+GjjLwHA9K4cDP90oOMH6wfRc0zbGaatT1aQIL6EJOT6EbBDkE0GaEaHsF4kk7A=--t+nRneI0xx3h7kD+--ylF1ajEnHDWNkpZtAF1O6g==

View File

@ -74,6 +74,14 @@ Rails.application.configure do
# config.active_job.queue_name_prefix = "forg_production" # config.active_job.queue_name_prefix = "forg_production"
config.action_mailer.perform_caching = false config.action_mailer.perform_caching = false
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "smtp.eu.mailgun.org",
port: 587,
domain: ENV.fetch("APPLICATION_HOST"),
username: "postmaster@mail.ttcompanion.com",
password: Rails.application.credentials.dig(:mailgun, :password),
}
# Ignore bad email addresses and do not raise email delivery errors. # Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors.
@ -93,7 +101,7 @@ Rails.application.configure do
config.hosts = [ config.hosts = [
"localhost", "localhost",
"ttcompanion.com", "ttcompanion.com",
/.*\.ttcompanion\.com/ /.*\.ttcompanion\.com/,
] ]
# Skip DNS rebinding protection for the default health check endpoint. # Skip DNS rebinding protection for the default health check endpoint.
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } } # config.host_authorization = { exclude: ->(request) { request.path == "/up" } }

View File

@ -1,3 +1,6 @@
- set up email in prod
- disallow unverified accounts
- request invite
- don't move down/up top/bottom features - don't move down/up top/bottom features
- auto save text fields - auto save text fields
- indicate save status on titlebar - indicate save status on titlebar