How to setup Wordpress+Nginx to use CloudFront CDN without using a plugin?

-1 down vote favorite

I want to use as few plugins on my site as possible. I spent at least a couple hours searching google without finding any information to aid my quest. Also being compatible with Cloudflare: ssl/security/caching/etc would be ideal.

Any help will be greatly appreciated!