Skip to content

Support of wildcard subdomains #158

@jappi00

Description

@jappi00

Hello together,

I have problems to implement a template for wildcard domains. I need this for preview deployments.

My idea was the following:

  1. I have created a simple A Record modification like this:
{
    "providerId": "hav.sh",
    "providerName": "HAV.sh",
    "serviceId": "hosting",
    "serviceName": "HAV.sh Hosting",
    "description": "Set up DNS records for HAV.sh managed hosting.",
    "version": 1,
    "logoUrl": "https://hav.sh/images/logo.svg",
    "variableDescription": "IP address of the HAV.sh managed server.",
    "syncPubKeyDomain": "hav.sh",
    "syncRedirectDomain": "hav.sh",
    "records": [
        {
            "type": "A",
            "host": "@",
            "pointsTo": "%IP%",
            "ttl": 3600
        }
    ]
}

That is validated.

  1. I have tried to create a second one for the preview deployments (maybe I can combine both but it is only a wildcard if it supports preview deployments) but it does not get validated. I culdn't find any information about this problem.
{
    "providerId": "hav.sh",
    "providerName": "HAV.sh",
    "serviceId": "wildcard-hosting",
    "serviceName": "HAV.sh Wildcard Hosting",
    "description": "Set up a wildcard DNS record for HAV.sh managed hosting.",
    "version": 1,
    "logoUrl": "https://hav.sh/images/logo.svg",
    "variableDescription": "Prefix address of the HAV.sh managed server.",
    "syncPubKeyDomain": "hav.sh",
    "syncRedirectDomain": "hav.sh",
    "records": [
      {
        "type": "CNAME",
        "host": "*",
        "pointsTo": "%prefix%.hav.sh",
        "ttl": "300"
      }
    ]
}

I also tried that but it doesn't get validated:

Image

Would appreciate some help here.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions