I want to use brotli compression with nginx on Ubuntu 16.04.
I don't want to install all of the development and build packages or compile anything on our production severs.
Can it be done? Is there some package that can be installed?
I want to use brotli compression with nginx on Ubuntu 16.04.
I don't want to install all of the development and build packages or compile anything on our production severs.
Can it be done? Is there some package that can be installed?
Since brotli is part of Nginx Plus subscription, there isn't a way to avoid compiling nginx yourself.
I use Debian myself, and my approach is the following:
apt-get source nginx
to download the sourcesdpkg-buildpackage
to build a.deb
package..deb
package on production servers.You don't need to use nginx.org repository, you can also do this with the OS own repository.
As per
nginx
manual you need to installnginx-plus-module-brotli
package:and in
nginx.conf
you need to add those lines:Additionally you need to config this module. For example:
Check out all the directives you can use in config.