README.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Initial simple way to Webfinger enable your domain -- needs PHP.
  2. ================================================================
  3. This guide needs some updating, since it will only guide you to present
  4. XML data (while the curl command likely gives you JSON). The workaround
  5. is to simply make curl get 'webfinger.xml' instead, and/or have another
  6. file that contains JSON, but that requires editing the PHP file as well.
  7. Step 1
  8. ======
  9. Put the 'dot-well-known' on your website, so it loads at:
  10. https://example.com/.well-known/
  11. (Remember the . at the beginning of this one, which is common practice
  12. for "hidden" files and why we have renamed it "dot-")
  13. Step 2
  14. ======
  15. Edit the .well-known/host-meta file and replace "example.com" with the
  16. domain name you're hosting the .well-known directory on.
  17. Using vim you can do this as a quick method:
  18. $ vim .well-known/host-meta [ENTER]
  19. :%s/example.com/domain.com/ [ENTER]
  20. :wq [ENTER]
  21. Step 3
  22. ======
  23. For each user on your site, and this might only be you...
  24. In the webfinger directory, make a copy of the example@example.com.xml file
  25. so that it's called (replace username and example.com with appropriate
  26. values, the domain name should be the same as you're "socialifying"):
  27. username@example.com.xml
  28. Then edit the file contents, replacing "social.example.com" with your
  29. GNU social instance's base path, and change the user ID number (and
  30. nickname for the FOAF link) to that of your account on your social
  31. site. If you don't know your user ID number, you can see this on your
  32. GNU social profile page by looking at the destination URLs in the
  33. Feeds links.
  34. PROTIP: You can get the bulk of the contents (note the <Subject> element though)
  35. from curling down your real webfinger data:
  36. $ curl https://social.example.com/.well-known/webfinger?resource=acct:username@social.example.com
  37. Finally
  38. =======
  39. Using this method, though fiddly, you can now be @user@domain without
  40. the need for any prefixes for subdomains, etc.