]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - socialfy-your-domain/README.txt
Verify that authenticated API calls are made from our domain name.
[quix0rs-gnu-social.git] / socialfy-your-domain / README.txt
1 Initial simple way to Webfinger enable your domain -- needs PHP.
2 ================================================================
3
4 Step 1
5 ======
6
7 Put the 'dot-well-known' on your website, so it loads at:
8
9      https://example.com/.well-known/
10
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
14 Step 2
15 ======
16
17 Edit the .well-known/host-meta file and replace "example.com" with the
18 domain name you're hosting the .well-known directory on.
19
20 Using vim you can do this as a quick method:
21     $ vim .well-known/host-meta [ENTER]
22     :%s/example.com/domain.com/    [ENTER]
23     :wq [ENTER]
24
25 Step 3
26 ======
27
28 For each user on your site, and this might only be you...
29
30 In the webfinger directory, make a copy of the example@example.com.xml file
31 so that it's called (replace username and example.com with appropriate
32 values, the domain name should be the same as you're "socialifying"):
33
34      username@example.com.xml
35
36 Then edit the file contents, replacing "social.example.com" with your
37 GNU social instance's base path, and change the user ID number (and
38 nickname for the FOAF link) to that of your account on your social
39 site. If you don't know your user ID number, you can see this on your
40 GNU social profile page by looking at the destination URLs in the
41 Feeds links.
42
43 PROTIP: You can get the bulk of the contents (note the <Subject> element though)
44         from curling down your real webfinger data:
45 $ curl https://social.example.com/.well-known/webfinger?resource=acct:username@social.example.com
46
47 Finally
48 =======
49
50 Using this method, though fiddly, you can now be @user@domain without
51 the need for any prefixes for subdomains, etc.