Skip to content

Instantly share code, notes, and snippets.

View BanjoFox's full-sized avatar

Banjo Fox BanjoFox

View GitHub Profile
@BanjoFox
BanjoFox / nginx-config.md
Last active September 10, 2018 12:22 — forked from simonhaenisch/nginx-config.md
Nginx configuration boilerplate with SSL

Nginx Configuration Boilerplate

This is my boilerplate for a Nginx config with SSL. I like the idea of modular includes, so I created a /etc/nginx/includes directory for files that get included into the main config file /etc/nginx/nginx.conf. I moved mime.types and fastcgi.conf to that includes folder. I use a common-location-rules.conf file for location rules that are shared between all sites hosted on the server. Relative paths in include directives are relative to the config prefix path (path to the nginx.conf file, by default /etc/nginx/).

The following files are from h5bp/server-configs-nginx:

  • includes/mime.types: here the correct MIME type for javascript (application/javascript instead of text/javascript) is set among others. Using this file is important because the gzip_types rule is set accordingly in gzip.conf.
  • **[includes/expires.conf](htt
@BanjoFox
BanjoFox / keybase.md
Created August 10, 2018 00:33
rootkit-droid

Keybase proof

I hereby claim:

  • I am banjofox on github.
  • I am banjofox (https://keybase.io/banjofox) on keybase.
  • I have a public key ASArRG6UGdgCxu5s2ZNyanbBs73e1IMMBOZJeVZRPuTo_Ao

To claim this, I am signing this object: