Home assistant uses websockets, which requires extra configuration in nginx.
See the nginx config here to use as a guide