Home Assistant NGINX issue

When setting up NGINX I was able to get it to work with the domain but then Home assistant was not able to connect to dark sky and the sun component. What could be causing that issue? I did forward the ports and everything as well. I also had to remove the ssl entries in Home assistant config to get NGINX to work. I have reversed everything since to get those components to work for now.