Project structure: conf/domains.yamlΒΆ

Note

This file is rendered as a template. Refer to Conf files templating for more details.

Domain configuration for the gateway is defined in this file. Hasura allots a [cluster-name].hasura-app.io for every cluster, for which the configuration should look like the following:

{{ cluster.name }}.hasura-app.io:
  ssl:
    type: LetsEncrypt
    conf:
      account: {{ cluster.name }}

An example configuration for a domain without SSL:

example-domain.com:
  ssl: null

OR (only for Hasura CLI versions >= v0.2.50)

# Example configurtaion for a domain with SSL

- domain: example-domain.com
  ssl:
    type: LetsEncrypt
    conf: {}

# Example configurtaion for a domain without SSL

- domain: example-domain.com
  ssl: null

If you own a domain and need point that domain to a Hasura cluster, you just need to point the domain to the cluster IP and add a domain configuration here.

Check out Adding a custom domain for more details.

You can find the default file at conf/domains.yaml in the base repo.