My Endpoint is configured like this:
config :my_web, MyWeb.Endpoint,
url: [host: "mydomain.com", scheme: "https"],
http: [port: 5000]
I am serving the phoenix app at localhost port 5000, and have nginx as https server in front of it.
Currently pages load correctly and everything. However, I’m trying to use the MyWeb.Router.Helpers.url helpers and instead of
https://mydomain.com
it is returning
https://mydomain.com:5000
How can I get it to not include the port? I tried setting port: nil in the Endpoint config, but that didn’t help.