deleted the line:
force_ssl: [rewrite_on: [:x_forwarded_proto]]
from prod.exs and is now working
:
updated prod.exs:
use Mix.Config
config :pelable, PelableWeb.Endpoint,
http: [:inet6, port: System.get_env("PORT") || 4000],
url: [host: System.get_env("RENDER_EXTERNAL_HOSTNAME") || "localhost", port: 80],
cache_static_manifest: "priv/static/cache_manifest.json"
config :logger, level: :info
updated releases.exs:
import Config
config :logger, level: :info
config :pelable, PelableWeb.Endpoint, server: true
config :pelable, PelableWeb.Endpoint,
secret_key_base: System.get_env("SECRET_KEY_BASE")
config :pelable, Pelable.Repo,
ssl: true,
database: System.get_env("DATABASE_URL"),
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")






















