The personal finance app for everyone
App domain for mailers
Josh Pigford936ae9f6102c
diff --git a/.env.example b/.env.exampleindex d4e15f07..f1e6b46b 100644--- a/.env.example+++ b/.env.example@@ -1,6 +1,10 @@# Used to enable specific features unique to the hosted version of Maybe. There's a very high likelihood that you don't need to change this value.HOSTED=false+# App Domain+# This is the domain that your Maybe instance will be hosted at. It is used to generate links in emails and other places.+APP_DOMAIN=+# SMTP Configuration# This is only needed if you intend on sending emails from your Maybe instance (such as for password resets or email financial reports).# Resend.com is a good option that offers a free tier for sending emails.diff --git a/config/environments/production.rb b/config/environments/production.rbindex 741a98ca..ec74b5c5 100644--- a/config/environments/production.rb+++ b/config/environments/production.rb@@ -67,6 +67,7 @@ Rails.application.configure doconfig.action_mailer.perform_caching = false+ config.action_mailer.default_url_options = { host: ENV["APP_DOMAIN"] }config.action_mailer.delivery_method = :smtpconfig.action_mailer.smtp_settings = {address: ENV["SMTP_ADDRESS"],