GitLab Terraform registry Error accessing remote module registry .well-known/terraform.json unavailable

I’ve been setting up the Terraform registry from GitLab. My setup seems correct but I face the issue below:

    Initializing modules...
22│ Error: Error accessing remote module registry
24│ Failed to retrieve available versions for module "azure_vm" (
25│ from eucceisgtp01.pvcp.intra: Failed to request discovery document: Get "https://eucceisgtp01.pvcp.intra/.well-known/terraform.json": dial tcp
27│ connect: connection refused.

due to GitLab accepting only HTTPS requests for the discovery. Do you know how and where it can be switched to HTTP?