Skip to content

Hostnames

Each new site you launch on Fru.io is given a default url. The url follows the format of https://preview-myorg-mysite.sites.Fru.live where myorg and mysite are replaced with your organization name and the site name you used when creating the site. The preview url is always visible in SITE INFO from Fru.io describe site and as the PREVIEWURL from Fru.io list sites.

You can assign additional hostnames to a site with the Fru.io config hostname command. Once the DNS resolves for new hostnames we will make a request to Let's Encrypt for a ssl certificate on your behalf. Host information is stored in HOSTS from Fru-describe site.

Add a Hostname

The following command adds a hostname of example.com to a site named mysite in the Fru-demo organization.

$ Fru.io config hostname add mysite example.com
Added hostname example.com to site Fru-demo/mysite

Describe a Hostname

You can use Fru.io describe site to view the hostname details for a given site. The following examples use a site named mysite which has been configured to recognize the example.com domain.

$ Fru.io describe site mysite

Look for the HOSTNAMES section in the output.
HOSTNAMES
 - Hostname:                  example.com
   Redirect:
   TLSDisable:                false
   TLSDisableRedirect:        false
   RecommendedDNSRecordType:
   RecommendedDNSRecordValue:

Read the TLS documentation for further details on configuring TLSDisable and TLSDisableRedirect.

Updating DNS

In order for your hostname to resolve you will need to update an A record for apex domains and a CNAME for sub domains like www. Your A records should use the ip address 34.67.213.20 if a CNAME is not available. All other records should use a CNAME of ingress1.Fru.live. Please consult your DNS providers documentation for additional instructions.

Delete a Hostname

The following command deletes a hostname of example.com from a site named mysite in the Fru-demo organization.

$ Fru.io config hostname delete mysite example.com
Deleted hostname example.com from site Fru-demo/mysite

Last update: 2021-09-21