Skip to content

Commit 5df8975

Browse files
committed
1 parent 8918863 commit 5df8975

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

config/prod.exs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ use Mix.Config
1010
# which you should run after static files are built and
1111
# before starting your production server.
1212
config :password_example, PasswordExampleWeb.Endpoint,
13-
url: [host: "example.com", port: 80],
13+
# url: [host: "example.com", port: 80],
14+
http: [port: {:system, "PORT"}],
15+
url: [scheme: "https", host: "arcane-anchorage-57187.herokuapp.com", port: 443],
16+
force_ssl: [rewrite_on: [:x_forwarded_proto]],
1417
cache_static_manifest: "priv/static/cache_manifest.json"
1518

1619
# Do not print debug messages in production

config/prod.secret.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ database_url =
1212
"""
1313

1414
config :password_example, PasswordExample.Repo,
15-
# ssl: true,
15+
ssl: true,
1616
url: database_url,
1717
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")
1818

lib/password_example_web/endpoint.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defmodule PasswordExampleWeb.Endpoint do
1414
]
1515

1616
socket "/socket", PasswordExampleWeb.UserSocket,
17-
websocket: true,
17+
websocket: [timeout: 45_000],
1818
longpoll: false
1919

2020
socket "/live", Phoenix.LiveView.Socket, websocket: [connect_info: [session: @session_options]]

0 commit comments

Comments
 (0)