Today I have installed Flarum on my VPS machine running under an nginx server. For a basic setup I took an nginx configuration file which I have been using for some other non-Flarum projects. According to the instructions in the Flarum docs I added "include /path/to/flarum/.nginx.conf;" to my configuration.
After having played with the successfully installed forum for some time I accidentally noticed that the js-files are not being gzipped. The reason is that the ".nginx.conf" file which comes with Flarum, does not contain "text/javascript" in its gzip_types section. Moreover, since ".nginx.conf" declares the site-specific gzip behavior, it means that the server-wide gzip configuration is ignored (even if in my case it contained a proper gzip_types set).
Is gzipping of js files intentionally excluded from the .nginx.conf? I would like to have it enabled but since Flarum heavily relies on Javascript, I am not sure if there is a good reason why Flarum's .nginx.conf makes them being sent non-gzipped.