Open UpcraftLP opened 12 months ago
A couple initial thoughts:
/.well-known/
endpoints for additional or unrelated purposes is a pretty established functionality for web hosting. so even if some other web service (eg, wordpress) is already running on a domain, there is often a mechanism to handle well-known endpoints (eg, for Let's Encrypt certificate validation, and many other standard use-cases)
This is in response to a discussion on the API Touchers discord.
Currently, it is possible to run a PDS on nonstandard ports by passing the port in the URL (
http(s)://mydomain.tld:1234/
), but handle resolution via/.well-known/
is an entirely unrelated mechanism and assumes standard ports for http(s).This could be resolved by making use of DNS SRV records, which map a named service to a port.
Something like
_atproto._tls.domain.tld
maybe?(note: the protocol part cannot be freely chosen on most DNS providers, ex. cloudflare only allows
_tcp
,_udp
and_tls
)If the PDS also respects this, this would additionally allow for running a PDS on a domain that already has an (unrelated) webserver listening on ports 80/443.