Skip to content

Commit 2196ab5

Browse files
authored
Add a note in generated configs about compile time :force_ssl config (#5653)
1 parent 8de0544 commit 2196ab5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

installer/templates/phx_single/config/runtime.exs

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ if config_env() == :prod do
7474
# "priv/ssl/server.key". For all supported SSL configuration
7575
# options, see https://hexdocs.pm/plug/Plug.SSL.html#configure/1
7676
#
77-
# We also recommend setting `force_ssl` in your endpoint, ensuring
78-
# no data is ever sent via http, always redirecting to https:
77+
# We also recommend setting `force_ssl` in your config/prod.exs,
78+
# ensuring no data is ever sent via http, always redirecting to https:
7979
#
8080
# config :<%= @web_app_name %>, <%= @endpoint_module %>,
8181
# force_ssl: [hsts: true]

installer/templates/phx_umbrella/apps/app_name_web/config/runtime.exs

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ config :<%= @web_app_name %>, <%= @endpoint_module %>,
5555
# "priv/ssl/server.key". For all supported SSL configuration
5656
# options, see https://hexdocs.pm/plug/Plug.SSL.html#configure/1
5757
#
58-
# We also recommend setting `force_ssl` in your endpoint, ensuring
59-
# no data is ever sent via http, always redirecting to https:
58+
# We also recommend setting `force_ssl` in your config/prod.exs,
59+
# ensuring no data is ever sent via http, always redirecting to https:
6060
#
6161
# config :<%= @web_app_name %>, <%= @endpoint_module %>,
6262
# force_ssl: [hsts: true]

0 commit comments

Comments
 (0)