Setting up nginx for use with Discourse

You may be interested in this: