* Add cors.conf and fix nginx 502 errors via tips from @aku