-
Notifications
You must be signed in to change notification settings - Fork 82
Configure nginx to server static gzipped content #72
Comments
Thanks for pointing this out @yourivdlans! This will probably involve a bit more in the Chef recipes for the passenger stack because passenger takes care of serving assets as static files itself. To work around this, we probably need something like the following sample. In this sample, we will try to load the URL first via
|
Looks like we also need to pass an option to Passenger when compiling with nginx
|
@jvanbaarsen We don't compile passenger or nginx. Passenger and nginx is installed form the Phusion deb repositories in the Rails cookbook. |
@michiels Ok, so that means we cant pass in the flag for gzip content? or is that passed in by default? |
@jvanbaarsen It's passed by default. I don't think we need to change anything in how we install passenger itself for this issue. |
@michiels Ok thanks! |
At this time the nginx configuration does not include a config for serving static gzip content. See the rails guides for the actual config:
http://guides.rubyonrails.org/asset_pipeline.html#gzip-compression
The text was updated successfully, but these errors were encountered: