Nginx and Post Preview (Preview Changes) not working [DigitalOcean/Fix]

Recently I have been experiencing an issue with Preview Changes not working in WordPress on a Nginx VPS over at DigitalOcean. I use a few common config files from nginx-common-config. Before, the configuration did not fix the problem, but after it did. Thanks to the /VVV guys for a configuration that solved the problem.

To fix you can just clone down nginx-common-config and include the nginx.wp.conf file.