How to set up your own domain
1. Prerequisites
Before starting the process, make sure you meet the following requirements:
- Standard Plan or higher: Square Cloud allows custom domain configuration only for users on the Standard plan or above.
- A registered domain: You must own a domain purchased from providers such as Registro.br, Namecheap, GoDaddy, Google Domains, or another registrar.
- Cloudflare Account: We will use Cloudflare to manage the DNS records, which ensures protection against DDoS attacks and faster loading speeds (CDN).
2. What are Nameservers?
Before configuring your website, you need to understand the concept of Nameservers.
Definition: Nameservers act as the internet's "phonebook". They indicate which service is responsible for managing your domain's records. When you change your Nameservers to Cloudflare, you are telling the internet: "Cloudflare is now in charge of directing traffic to my website."
Transferring management to Cloudflare
If your domain was purchased from Registro.br, GoDaddy, or another provider, you will need to point it to Cloudflare by following these steps:
- Create a free account on Cloudflare.
- Click on "Add a Site" and type in your domain (e.g.,
mywebsite.com). - Cloudflare will provide two Nameserver addresses (e.g.,
nina.ns.cloudflare.comandtom.ns.cloudflare.com). - Access the control panel of your provider (where you bought the domain).
- Look for the Change Nameservers or DNS option.
- Replace the current addresses with the ones provided by Cloudflare and save.
- Wait: Propagation can take from a few minutes up to 24 hours.
3. Configuration on Square Cloud
With DNS management now on Cloudflare, let's prepare your application on Square Cloud.
- Access the Square Cloud Dashboard.
- Select the application you want to link to the domain.
- In the menu, click on the Settings tab and select the Network sub-tab.
- In the text field, type your domain or subdomain (e.g.,
mywebsite.comorapi.mywebsite.com). - Click Save.
- The system will display the required records:
- CNAME: A destination address (cname.squareweb.app).
- TXT (if generated): A verification code to validate domain ownership.
4. Configuring Records on Cloudflare
Now, you need to copy the information from Square Cloud over to the Cloudflare dashboard.
- In the Cloudflare dashboard, select your domain and go to the DNS > Records tab.
- Click on Add Record.
CNAME Record (Required)
- Type: CNAME
- Name:
@(if it is the root domain) or your subdomain name (e.g.,wwworapp). - Target: cname.squareweb.app.
- Proxy Status: Keep it as Proxied (Orange cloud) to ensure SSL protection and security.
TXT Record (If applicable)
- Type: TXT
- Name:
@or the name indicated by the dashboard. - Content: Paste the generated verification code.
5. Final Validation
After saving the records on Cloudflare, return to the Network tab on Square Cloud.
- The system will check the records automatically. Once everything is correct, the domain status will change to Active.
Redirecting www to your domain
- To redirect
wwwto your domain, create a new record with the name www and type A, pointing to192.0.2.1(Cloudflare's internal dummy IP). - Next, in Cloudflare, go to Page Rules and create a new rule:
- Setting: Forwarding URL
- Status code: 301 Permanent Redirect
- Destination URL: Your configured URL (e.g., https://mywebsite.com/)
Troubleshooting Tips
- Propagation: If the website does not open, verify if the CNAME is correct using tools like DNS Checker.
- Cache: If you updated the records but do not see any changes, try clearing your browser cache or purging Cloudflare's cache under the Caching > Configuration > Purge Everything tab.
Updated on: 05/22/2026
Thank you!
