Skip to content

Commit b7f61f4

Browse files
Leechaelclaude
andcommitted
fix: use correct namecheap credentials file format
- Update credentials file to use 'certbot_dns_namecheap:dns_namecheap_username' format - This is the required format for certbot-dns-namecheap plugin - Previously used incorrect format that plugin couldn't parse 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 75f5bae commit b7f61f4

File tree

1 file changed

+3
-2
lines changed
  • custom-domain/dstack-ingress/scripts/dns_providers

1 file changed

+3
-2
lines changed

custom-domain/dstack-ingress/scripts/dns_providers/namecheap.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ def setup_certbot_credentials(self) -> bool:
4040

4141
cred_file = os.path.join(cred_dir, "namecheap.ini")
4242
with open(cred_file, "w") as f:
43-
f.write(f"dns_namecheap_username = {self.username}\n")
44-
f.write(f"dns_namecheap_api_key = {self.api_key}\n")
43+
f.write(f"# Namecheap API credentials used by Certbot\n")
44+
f.write(f"certbot_dns_namecheap:dns_namecheap_username = {self.username}\n")
45+
f.write(f"certbot_dns_namecheap:dns_namecheap_api_key = {self.api_key}\n")
4546

4647
os.chmod(cred_file, 0o600)
4748
return True

0 commit comments

Comments
 (0)