Running on ec2 giving error

The url is used for creating static assets urls, is not related to starting the cowboy server. Have you checked your endpoint.ex init?