Skip to content

Commit

Permalink
Add a note in generated configs about compile time :force_ssl config (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aptinio authored Dec 4, 2023
1 parent 8de0544 commit 2196ab5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions installer/templates/phx_single/config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ if config_env() == :prod do
# "priv/ssl/server.key". For all supported SSL configuration
# options, see https://hexdocs.pm/plug/Plug.SSL.html#configure/1
#
# We also recommend setting `force_ssl` in your endpoint, ensuring
# no data is ever sent via http, always redirecting to https:
# We also recommend setting `force_ssl` in your config/prod.exs,
# ensuring no data is ever sent via http, always redirecting to https:
#
# config :<%= @web_app_name %>, <%= @endpoint_module %>,
# force_ssl: [hsts: true]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ config :<%= @web_app_name %>, <%= @endpoint_module %>,
# "priv/ssl/server.key". For all supported SSL configuration
# options, see https://hexdocs.pm/plug/Plug.SSL.html#configure/1
#
# We also recommend setting `force_ssl` in your endpoint, ensuring
# no data is ever sent via http, always redirecting to https:
# We also recommend setting `force_ssl` in your config/prod.exs,
# ensuring no data is ever sent via http, always redirecting to https:
#
# config :<%= @web_app_name %>, <%= @endpoint_module %>,
# force_ssl: [hsts: true]
Expand Down

0 comments on commit 2196ab5

Please sign in to comment.