Find file History
GAumala Fix config errors
When trying static files with nginx append trailing slash before
returning 404.
Correctly route JS files.
Latest commit d3ae312 Oct 14, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md add nginx readme Sep 24, 2018
http.m4 Add nginx config as m4 files Aug 26, 2018
server.m4 Fix config errors Oct 14, 2018

README.md

M4 templates for Nginx configuration

These templates generate Nginx configuration files. These are meant to be included in the main config file because my server hosts more apps than just my blog.

The generated server.conf is meant to be included in a server block and the generated http.conf is meant to be included in an http block.

It is assumed that the main configuration file already has SSL set up with Let's Encrypt.

It is also assumed that the main configuration file already has enabled gzip compression. This is the recommended gzip configuration:

gzip on;
gzip_min_length 1000;
gzip_types      application/json application/xml image/svg+xml text/css text/plain;