mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
App domain for mailers
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -67,6 +67,7 @@ Rails.application.configure do
|
||||
|
||||
config.action_mailer.perform_caching = false
|
||||
|
||||
config.action_mailer.default_url_options = { host: ENV["APP_DOMAIN"] }
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = {
|
||||
address: ENV["SMTP_ADDRESS"],
|
||||
|
||||
Reference in New Issue
Block a user