Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(force_ssl): Configure force_ssl in prod instead of runtime #2035

Merged
merged 3 commits into from
May 8, 2024

Conversation

kotva006
Copy link
Contributor

@kotva006 kotva006 commented May 6, 2024

Summary of changes

Move the force_ssl configuration to the prod.exs configuration file as it is not supported to be configured in the runtime.exs file

Screenshot 2024-05-06 at 1 50 50 PM

https://app.asana.com/0/555089885850811/1206388063560698

@kotva006 kotva006 requested a review from a team as a code owner May 6, 2024 18:57
@kotva006 kotva006 requested a review from thecristen May 6, 2024 18:57
@kotva006 kotva006 added the dev-blue Deploy to dev-blue label May 6, 2024
config/prod.exs Outdated
@@ -2,3 +2,13 @@ import Config

config :dotcom, :cache, Dotcom.Cache.Multilevel
config :dotcom, :trip_plan_feedback_cache, Dotcom.Cache.TripPlanFeedback.Cache

unless System.get_env("PORT") do
# configured separately so that we can have the health check not require
Copy link
Contributor Author

@kotva006 kotva006 May 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Is this unless needed?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a holdover from many moons ago added here to help Backstop testing that we don't do anymore. https://github.com/mbta/dotcom-legacy/commit/0d8b53a42016da6b5cec3506f79c5fcbb170b095 We can probably revert that to how it was before

@anthonyshull
Copy link
Contributor

There is also config for this in config/deps/phoenix.exs that sets this for the test environment. We should move that to the config/test.exs file so they both follow the same pattern.

@kotva006 kotva006 merged commit b418fc8 into main May 8, 2024
19 of 20 checks passed
@kotva006 kotva006 deleted the rk/secure-cookie branch May 8, 2024 12:33
@github-actions github-actions bot removed the dev-blue Deploy to dev-blue label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants