The upstream repo from google hasn't been updated in over a year; issues are being opened questioning maintainership. It additionally breaks against more recent version combos of nginx/brotli.
There's an active fork here (which I also use on my remaining nginx instances) https://github.com/eustas/ngx_brotli