|
|
|
|
|
by amiga386
1 day ago
|
|
Pretty much all service discovery should work this way: 1. User enters hostname (or comes in from a QR code or TXT record or whatevs) 2. Client requests GET https://<hostname>/.well-known/<servicename> 3. This either redirects to the canonical base path of the service, which then can be queried itself for instances, or it directly returns a JSON/XML/whatever array of instances of the service on this server, and their respective base paths This is a lot better than assuming the service must be the document root (forcing service discrimination into the hostname) or assuming it can always have /<servicename>/ as a base path. |
|