Simple PHP7 FPM nginx configuration file using Brotli with gzip as a fallback.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Nginx Config for Brotli and PHP7 FPM

This is a basic nginx file meant to be modified and tinkered with. Out of the box you get SSL requests compressed with Brotli (falling back to gzip when Brotli is unavailable) passed to PHP7 FPM. Make sure to replace with your FQDS.


Brotli is a compression algorithm released by Google that is useful for decreasing the size of text files transmitted for HTTP. Brotli's compression ratio is about 20-30% higher than that of gzip.

You will need to compile nginx with the nginx Brotli module to use this configuration file.


Released under MIT.