Setup for Zeit / Now deployments

ssl
dns

#1

I’m really struggling to make cloudflare work with Zeit / Now deployments. Event though there is an explanation of how to use cloudflare on their site (found here: https://zeit.co/docs/guides/how-to-use-cloudflare) - some pieces of the puzzle must be missing.

I’ve tried to adopt some of the tips found on Heroku deployments ( like this one: https://support.cloudflare.com/hc/en-us/articles/205893698-Configure-Cloudflare-and-Heroku-over-HTTPS ) but still to many unknowns…

Has anyone had any success with Zeit deployments ?


#2

Can you give more information about what you think is missing or where you’re stuck?


#3

I really think an expert on these things (you) should make a guide showing best practises when integrating cloudflare with mainstream easy-to-use deployment servises like heroku, zeit and surge etc.
But to start with: Should I configure my domain to use zeit dns or cloudflare dns ? And then what’s the best way to handle https / ssl ?. I’ve followed the Zeit guide but I think it’s ambiguous with regard to how to configure my domain.


#4

@cscharff is good, but he’s not omniscient. Cloudflare is pretty basic: DNS, then proxy your traffic. Third party integration can be tricky…and sometimes they change their configurations as they go along, significantly changing how customers need to set up Cloudflare.

Thankfully, Cloudflare is popular enough that most of those mainstream easy-to-use services have guides for routing through Cloudflare. Cloudflare is pretty basic: DNS, then proxy your traffic. Here’s what I found for Zeit:

In this example, you need to set your domain to use Cloudflare for DNS. Go to your Registrar and set your domain to use whatever DNS servers your Cloudflare DNS page tells you: ____.ns.cloudflare.com (two of these)

For SSL, they recommend Full (Strict). So this tells me they already have a valid SSL certificate for your domain. Good.


#5

Thank’s for the clarification!
Perhaps I screwed up with the SSL full strict thing. I’ll try this one more time, and document what I do so that I can provide more intelligent questions in case I fail. :laughing:


#6

Hey there,

I’ve herd of Zeit but I’ve never used their deployment service - I’m a big fan of their terminal Hyper though :heart_eyes_cat:

Going through the process, I see I can’t use a custom domain on their free ‘OSS’ plan. That’s a bummer.

Their process for Cloudflare seem seem to be two-part:

  1. Create a verification TXT record and :grey: CNAME record your.domain.com pointing to alias.zeit.co
  2. Toggle CNAME :grey: -> :orange: and enable Full (Strict) SSL
    • This requires a Page Rule with a match pattern of *your.domain.com/.well-known/acme-challenge/* and the setting SSL Off

I’m curious where in the process you’re having trouble?


#7

This topic was automatically closed after 14 days. New replies are no longer allowed.