MIME types are used to identify the type of information that a file contains. This document shows you how to add a MIME type to your Nginx configuration.
Add MIME Types
The best way to add a MIME type to your Nginx configuration is to use a custom Chef recipe.
To add MIME types using a custom Chef recipe:
- Use this Chef recipe or create your own.
- Add the manifest MIME type to this file.
- Commit your changes locally and push them to your remote repository.
Use the ey recipes commands to upload and apply the recipes:
ey recipes upload -e environment_name
ey recipes apply -e environment_name
Upon a successful run, the file at
/data/nginx/mime.typeswill include your newly added mime types.