DNS for <%= @site.custom_domain.domain %>
- Go to your DNS provider’s website
- Create a new CNAME record for
<%= @site.custom_domain.domain %>
- Point the record to
custom.<%= base_domain() %>.
(including the dot)
- If you're using Cloudflare, make sure to disable the orange cloud proxy:
<%= img_tag(Routes.static_path(@conn, "/images/cloudflare_orange_cloud.png"), class: "w-36 my-4 inline") %>
→
<%= img_tag(Routes.static_path(@conn, "/images/cloudflare_gray_cloud.png"), class: "w-36 my-4 inline") %>
<%= link("Done →", to: "/sites/#{URI.encode_www_form(@site.domain)}/custom-domains/snippet", class: "button w-full mt-6") %>