Go live preparation

Ready to launch your application? Before you can do this, there are a few more steps to go.

SSL certificate

In order to provide your website under your domain with the proper SSL certificate, it'll need to be applied to our load balancer. To do this, you'll need to provide a valid SSL certificate for the domain that your project should be reachable and that also meets the below requirements:

  • The certificate should use the RSA-2048 algorithm or ECDSA P-256 algorithm
  • Needs to be in PEM format
  • Preferably provided in the following structure:
    • privkey.pem
    • fullchain.pem
    • certificate.pem

You can then run the below command with your new certificate keys:

curl -X PUT -H 'X-Frontastic-Api-Token: YOUR_TOKEN_ID' -d '@body.json' https://<customer_name>.frontastic.io/api/certificate

body.json must contain the privkey and the fullchain in PEM format.

For example:

{
    "privkey":"----BEGIN PRIVATE KEY----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCvWnUGydn6zYO7\nHKyweCU6qQEvab2YAm4wjY24yrjKYWTVyL8Xa75Y7HFYCNZ\/Qemd3SUeS+J0\/2ls\nZ\/47PsqiHbYAajhjZE4nWr1ybNB4qTRRjF479ikKjjHdlAzFN1h+KcZO+lBOsaaA\nDo7TH9TCpXbl+\/K8enkm3cHjETmVesLQTBeJifsR9RWMafjcSK6qK0nBcyOFkp0E\n4HJbj95UmjUrV0PpBKp4FI+8g+jz3jNtf3mZBotvTDT5ZIgu6eurxPchx8KODXMI\njI6Q0uNTEAte1gxUASIIiT9sKt9aYWNrzQf4D9t0+l3q5x+hSKjDnvyY1TMlUMkk\nuTAhiVfhAgMBAAECggEBAKzINQe7XU4Dswlr97zqpcRnQwO07VwbCPhOgpbTKcJA\ntVrxs1kgkS6NzCEylChQiiFDBpATtdAS24416gv2kzOqkutVvrow29FrV8Cn98Ls\n9uBjr3bl1wrPkdMDTpIFNu0ZvI2VmAvygF0t+w2ND9e7sqxq1YNiKn5hg+p5zoO6\nD\/TOcue84m4\/ph3urHvw+L62EPzS8DConuZ6RPKLA09zssDeYU3CaH+DRr1RMuid\nHhPNj2N3jOQzFR0CWTyPhH8K53PsOy4ysQHKUKoGvClkzJtk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\nuM2VcGfl96S8TihRzZvoroed6ti6WqEBmtzw3Wodatg+VyOeph4EYpr\/1wXKtx8\/\nwApIvJSwtmVi4MFU5aMqrSDE6ea73Mj2tcMyo5jMd6jmeWUHK8so\/joWUoHOUgwu\nX4Po1QYz+3dszkDqMp4fklxBwXRsW10KXzPMTZ+sOPAveyxindmjkW8lGy+QsRlG\nPfZ+G6Z6h7mjem0Y+iWlkYcV4PIWL1iwBi8saCbGS5jN2p8M+X+Q7UNKEkROb3N6\nKOqkqm57TH2H3eDJAkSnh6\/DNFu0Qg==\n----END CERTIFICATE----\n"
}

You'll then need to contact the Support team to tell them that you've updated the new certificates.

📘

If you don't know your API token, contact our Support team and they can help you.

To prevent your website from being unreachable due to too many redirects, make sure the encryption mode is set at the CDN provider, like Cloudflare. For more information, see the Cloudflare documentation on redirect loop errors.

Changing the domain in your DNS

After the SSL certificates have been verified by our team, you'll need to switch the DNS entries for your domain to point to our load balancer.

You can use an A record or a CNAME record for this. But using a CNAME would mean an additional request is sent to the DNS servers, which can cause a delay of a few milliseconds. Also, you can't create a CNAME record for the main domain name (for example, mydomain.com) itself, it must be an A record.

At Frontastic, we use completely separate systems for the production environment and the staging environment. Therefore, we have 2 different load balancers that are reachable under their own IP depending on the systems (production or staging) they're responsible for.

Please point your domain's DNS record to the below IPs, depending on which system you are about to add a domain to:

Environment

IP

Staging

35.201.71.45

Production
Ask our Support team which IP is the right one for your site

34.95.75.11 or 34.117.215.104

Once you've done this, your project should be available for the whole world to see! 🎉


Did this page help you?