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
2 changes: 0 additions & 2 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@

# Set localhost to be used by links generated in mailer templates.
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
# TODO: For temporary redirect (March 2025)
config.action_controller.default_url_options = { host: "localhost", port: 3000 }

# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
Expand Down
3 changes: 3 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
config.hosts = [
ENV.fetch("TOUCHPOINTS_WEB_DOMAIN")
]
if ENV["TOUCHPOINTS_WEB_DOMAIN2"].present?
config.hosts << ENV.fetch("TOUCHPOINTS_WEB_DOMAIN2")
end
# Skip DNS rebinding protection for the default health check endpoint.
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
end
7 changes: 7 additions & 0 deletions config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,11 @@
config.active_record.encryption.deterministic_key = ENV.fetch("RAILS_ACTIVE_RECORD_DETERMINISTIC_KEY")
config.active_record.encryption.key_derivation_salt = ENV.fetch("RAILS_ACTIVE_RECORD_KEY_DERIVATION_SALT")
config.active_record.encryption.support_unencrypted_data = true

config.hosts = [
ENV.fetch("TOUCHPOINTS_WEB_DOMAIN")
]
if ENV["TOUCHPOINTS_WEB_DOMAIN2"].present?
config.hosts << ENV.fetch("TOUCHPOINTS_WEB_DOMAIN2")
end
end