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