WSS errors - Disallowed MIME type (“text/html”)

I wonder what can I look into my Nginx reverse proxy template in order to solve this issue:

It seems that I need to upfront the socket or something like this? Any guideline should be appreciated.

Thanks for building this fantastic piece!