Disable SSL on prod build

Hi All
To introduce myself I have never worked as a developer on elixir before but I am an AWS developer and have been trying to deploy an elixir API to AWS.

I choose AWS Fargate to deploy this API and I have been successful with it without many issues,

The reason I am writing this post is the API I am deploying checks for SSL from somewhere in the code (which I have no idea about because I am very new to this language) and because of this reason my AWS Fargate health check never passes, even though API deployed successfully and working but every time a health check fails it stops the running task and create a new one because maybe it tries to pass the health check on the container URL but I have my SSL certificate setup on the load balancer,

forgive me if the above doesn’t make too much sense, in order to explain more I can paste my prod.exs file here and if someone can help me remove the SSL check I would highly appreciate it

config :api, ApiWeb.Endpoint,
  server: true,
  http: [
    transport_options: [socket_opts: [:inet6]],
    port: {:system, "PORT"}
  url: [scheme: "https", host: System.get_env("HOST_NAME"), port: 443],
  ssl: true,
  force_ssl: [rewrite_on: [:x_forwarded_proto]],
  secret_key_base: secret_key_base

please let me know if you have to see more code, I have already tried to remove the URL from above code and set ssl: false but it doesn’t work

I really appreciate any help you can provide.

Try altering the following fields:

url: [scheme: "https", ...]        # This has to be http
port: 443                          # This has to be 80
ssl: true                          # This can be omitted