# Ember CLI is upsetting nginx

**URL:** <https://meta.discourse.org/t/ember-cli-is-upsetting-nginx/242585>\
**Category:** Self-hosting\
**Tags:** unsupported-install, docker\
**Created:** [October 21, 2022, 11:22am UTC](https://meta.discourse.org/t/ember-cli-is-upsetting-nginx/242585 "2022-10-21T11:22:37Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [October 28, 2022, 10:31am UTC](https://meta.discourse.org/t/ember-cli-is-upsetting-nginx/242585/6 "2022-10-28T10:31:28Z")

</div>

So an update on this.

I’ve successfully fooled the system. I’ve forced a `Content-Length` header by overriding the StylesheetsController which prevents the chunked response, working around Ember CLI’s bad habit and avoiding nginx’s off-spec allergy.

How I got to this solution was by noticing another Ember CLI/nginx setup over https, where Rails was choosing _not_ to chunk the Stylesheet responses (anyone know why this might have been the case?). That lead me to try to force the header and, waddayaknow, it worked!

This is only needed in development, so I’m not too worried.

---

_[View the full topic](https://meta.discourse.org/t/ember-cli-is-upsetting-nginx/242585)._
