Nginx config for Drupal 8

Just in case anyone is wondering what's the correct way to configure Nginx for running Drupal 8 installation, or having trouble with Clean URLs or Image styles, I'll post my config as a Gist here. The Gist will be revised and improved over time, so please come and check for