Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoiding sub sub domains with Cloudflare free tier #1

Open
tdack opened this issue Dec 4, 2024 · 0 comments
Open

Avoiding sub sub domains with Cloudflare free tier #1

tdack opened this issue Dec 4, 2024 · 0 comments

Comments

@tdack
Copy link

tdack commented Dec 4, 2024

Not really an issue, but a way to avoid the sub sub domain SSL certificate issue on Cloudflare free tier.

Set the PDS hostname:
PDS_HOSTNAME=pds.example.com

Set the domain name that the PDS will assign handles to:
PDS_SERVICE_HANDLE_DOMAINS=.example.com

The Cloudflare tunnel rules then become:
pds.example.com -> http://pds:3000/
*.example.com -> http://pds:3000/

When you create an account the custom server address is https://pds.example.com and it will create handles as @user.example.com

This means you don't need to create _atproto.user TXT records for each user as the PDS will respond to https://user.example.com/.well-known/atproto-did with the correct did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant