Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ gem "thruster", require: false
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
gem "image_processing", "~> 1.2"

# Send transactional email through Postmark in production [https://github.com/ActiveCampaign/postmark-rails]
gem "postmark-rails", "~> 0.22"

group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[ mri windows ], require: "debug/prelude"
Expand Down
8 changes: 8 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ GEM
parser (3.3.11.1)
ast (~> 2.4.1)
racc
postmark (1.25.1)
json
postmark-rails (0.22.1)
actionmailer (>= 3.0.0)
postmark (>= 1.21.3, < 2.0)
pp (0.6.3)
prettyprint
prettyprint (0.2.0)
Expand Down Expand Up @@ -424,6 +429,7 @@ DEPENDENCIES
jbuilder
kamal
letter_opener
postmark-rails (~> 0.22)
propshaft
puma (>= 5.0)
rails!
Expand Down Expand Up @@ -526,6 +532,8 @@ CHECKSUMS
ostruct (0.6.3) sha256=95a2ed4a4bd1d190784e666b47b2d3f078e4a9efda2fccf18f84ddc6538ed912
parallel (2.1.0) sha256=b35258865c2e31134c5ecb708beaaf6772adf9d5efae28e93e99260877b09356
parser (3.3.11.1) sha256=d17ace7aabe3e72c3cc94043714be27cc6f852f104d81aa284c2281aecc65d54
postmark (1.25.1) sha256=2ac110fa1b4f85a62996fdc63167922eea1c4284a9a7ceb9e007f2758d9e17be
postmark-rails (0.22.1) sha256=fcea27dda4f7418123d7723622ec5447df4dacacc10a20a40add0f6789135d8f
pp (0.6.3) sha256=2951d514450b93ccfeb1df7d021cae0da16e0a7f95ee1e2273719669d0ab9df6
prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
Expand Down
2 changes: 1 addition & 1 deletion app/mailers/application_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ApplicationMailer < ActionMailer::Base
default from: "from@example.com"
default from: "no-reply@community-foundations.rowhomelabs.com"
layout "mailer"
end
2 changes: 1 addition & 1 deletion config/credentials/production.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
97luwAcQGslJIAFEcWNvbdiLnvhLy9ny+kayvBRiXK83C3BtpBFggxRuc2V4uZWeU00+PRBLPN6aQWSk/1wEtRvyl7I5eFRkS7ThCfKc51dJilEm7R2e4ENHV3pN+jQB9oxRIeKE2TYBtIZaMKpmt7bWbvpkN+9qKl0BjnIa0AbkX8/LmAzK5crUsm75HbSaW7f7244WpQ/vjWcuICH8BE+6E4MX0ketNeS9hi3YMD/Ry6vs+oSMTTb4uPT50QugZMfbSz/pLVJHKcnIUtpxmV4ocUOFCSuJOV5ehAuzDRv4au/xwvP+84/pVzenW/a61BShaS0/KziqbFD6BN99du4E4lUkb0yhHxainSIVqB1iBlV38h3iWSerytxSYTJRk7nH1dx9MxGwftdMdbNGMVygHO4HL4ppdEz6sp4=--UBnYSBFV6lXze2Ay--sDdwbw7FX5+HMnpVK/18Aw==
e0hpSgNA6IUvDCd6Jw4R4fIlyRU3nqggi7c3/VAxfd3qq6koKDB/4Nq8HavZgiCFT0lO1WcfD7/SMtlxwsuFVLHsbrUzWNIhF0sBcegh8uk6vYM1ZteXSwcVqYqOlJmQ71nK8K0ugBl0Xg8L3OF+Bnpa6Vr7ZP/7af3Syv8nFikvlqCOb0Rh3K+sGAmKO1zEbeT9CV/z8LZsbR4RcI1sC/p2ZHCJnECgQFpwdbQ+3F9TQRgCwZAQO7J57rgzXx9fbHhIvrLZX+u4gUdKwba89Kt6Fhnc7VuEC84XvHzU5OnHJcZN4+RGeciO06b+oMhehjzNUUQdUmIf+2qC3F2M3/brVFq2tXUQvxsP0M4usnMUh9Xa26MpBZDhZIKoQZgk5GFm98TGXXtzKDVH3883GOg9QVXMdhfqqGGBgYlaUQYmO7r41Pt9EdZ4YVlxv70w/BkSHDW1f9JNVev+PHn3B3I6PQSmgJe1T+aR6VdZYGk2CQ8NSwg9C1RG--fM0xWbCXnCrb5Vho--B1KSjMxlfFxAa51y2cjxfQ==
16 changes: 8 additions & 8 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@
# Set host to be used by links generated in mailer templates.
config.action_mailer.default_url_options = { host: "community-foundations.rowhomelabs.com" }

# Specify outgoing SMTP server. Remember to add smtp/* credentials via bin/rails credentials:edit.
# config.action_mailer.smtp_settings = {
# user_name: Rails.application.credentials.dig(:smtp, :user_name),
# password: Rails.application.credentials.dig(:smtp, :password),
# address: "smtp.example.com",
# port: 587,
# authentication: :plain
# }
# Deliver mail through Postmark. Add the API token via
# bin/rails credentials:edit --environment=production (key: postmark.api_token)
config.action_mailer.delivery_method = :postmark
config.action_mailer.postmark_settings = {
api_token: Rails.application.credentials.dig(:postmark, :api_token)
}
# Surface delivery failures inside the Solid Queue job so they're visible and retryable.
config.action_mailer.raise_delivery_errors = true

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).
Expand All @@ -89,7 +89,7 @@
# page) plus any org subdomain like "arlington.community-foundations.rowhomelabs.com".
config.hosts = [
"community-foundations.rowhomelabs.com",
/\A[a-z0-9-]+\.community-foundations\.rowhomelabs\.com\z/, # org subdomains

Check failure on line 92 in config/environments/production.rb

View workflow job for this annotation

GitHub Actions / lint

Style/TrailingCommaInArrayLiteral: Avoid comma after the last item of an array.
]

# Skip DNS rebinding protection for the default health check endpoint (kamal-proxy hits
Expand Down
Loading