Skip to content

Commit

Permalink
minor change on dns settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aliel committed Aug 31, 2023
1 parent 038a7ff commit 2816e0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/aleph/sdk/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Settings(BaseSettings):
DNS_IPFS_DOMAIN = "ipfs.public.aleph.sh"
DNS_PROGRAM_DOMAIN = "program.public.aleph.sh"
DNS_INSTANCE_DOMAIN = "instance.public.aleph.sh"
DNS_ROOT_DOMAIN = "static.public.aleph.sh"
DNS_STATIC_DOMAIN = "static.public.aleph.sh"
DNS_RESOLVERS = ["1.1.1.1", "1.0.0.1"]

class Config:
Expand Down
4 changes: 2 additions & 2 deletions src/aleph/sdk/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ def get_required_dns_rules(self, url, target, owner: Optional[str] = None):
"dns": {
"type": "cname",
"name": f"_dnslink.{domain}",
"value": f"_dnslink.{domain}.{settings.DNS_ROOT_DOMAIN}",
"value": f"_dnslink.{domain}.{settings.DNS_STATIC_DOMAIN}",
},
"info": f"Create a CNAME record for _dnslink.{domain} with value _dnslink.{domain}.{settings.DNS_ROOT_DOMAIN}",
"info": f"Create a CNAME record for _dnslink.{domain} with value _dnslink.{domain}.{settings.DNS_STATIC_DOMAIN}",
"on_error": f"CNAME record not found: _dnslink.{domain}",
}
)
Expand Down

0 comments on commit 2816e0e

Please sign in to comment.