Skip to content

Commit

Permalink
fix websocket error
Browse files Browse the repository at this point in the history
  • Loading branch information
akasprzok committed Aug 22, 2022
1 parent cc1e658 commit 0579178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/runtime.exs
Expand Up @@ -44,7 +44,7 @@ if config_env() == :prod do
You can generate one by calling: mix phx.gen.secret
"""

host = System.get_env("PHX_HOST") || "example.com"
host = System.get_env("PHX_HOST") || "https://temporaryhack.com"
port = String.to_integer(System.get_env("PORT") || "4000")

config :temporary_hack, TemporaryHackWeb.Endpoint,
Expand All @@ -57,6 +57,7 @@ if config_env() == :prod do
ip: {0, 0, 0, 0, 0, 0, 0, 0},
port: port
],
check_origin: ["https://temporaryhack.com"],
secret_key_base: secret_key_base

config :temporary_hack, TemporaryHack.Mailer,
Expand Down

0 comments on commit 0579178

Please sign in to comment.