Skip to content

tlovett1/brotli-nginx-php7-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 servername.com with your FQDS.

Background

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.

License

Released under MIT.

About

Simple PHP7 FPM nginx configuration file using Brotli with gzip as a fallback.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages