DNS Cloudflare
cloudflare configuration
This instruction is for ones who have already setup their domain in Cloudflare. If this is not your case please set your account (can be the the free one) and configure your domain into it. We do not support this configuration and you need to follow official Cloudflare instructions to do that. Then follow the instructions below.
subdomains
Let's say that you have your front URL as frontxyz.cangooroodns.com.br and wants to use the URL b2b.yourcompany.com to it. in this case you will configure a subdomain of your domain. This a simple CNAME configuration, just do the following:
access your domain configuration on Cloudflare.
go to DNS configuration
add a new CNAME record
type: CNAME
name: b2b
value: frontxyz.cangooroodns.com.br
In a few hours you'll be able to access your front using the URL b2b.yourcompany.com.
root domain
If you want to have the front configured in your root domain, please follow the instructions below.
access your domain configuration on Cloudflare.
go to DNS configuration
add a new CNAME record (bear in mind to check if you have another record with the name @ and delete it)
type: CNAME
name: @
value: frontxyz.cangooroodns.com.br
add another CNAME record
type: CNAME
name: www
value: yourcompany.com
In a few hours you'll be able to access your front using yourcompany.com and www.yourcompany.com.
For both configuration we recommend that you turn on the proxy flag.