The error message suggest the solution, add one of the two mentioned settings in the http { .... } section of the nginx.conf file and restart nginx.