Barsgrave has beat me to writing the custom CloudFlare guide, so check out his post:
Definitely wish I knew this before I had to figure everything out myself.