summaryrefslogtreecommitdiff
path: root/doc/snac.5
diff options
context:
space:
mode:
authorGravatar default2022-12-04 07:18:24 +0100
committerGravatar default2022-12-04 07:18:24 +0100
commit30e3f2fc3d121a5d0bdf6ed201da7965ecbca7df (patch)
treeedb947aa22acdc86705716ff23a7c9d813ff55b2 /doc/snac.5
parentUpdated TODO. (diff)
downloadpenes-snac2-30e3f2fc3d121a5d0bdf6ed201da7965ecbca7df.tar.gz
penes-snac2-30e3f2fc3d121a5d0bdf6ed201da7965ecbca7df.tar.xz
penes-snac2-30e3f2fc3d121a5d0bdf6ed201da7965ecbca7df.zip
Updated documentation.
Diffstat (limited to 'doc/snac.5')
-rw-r--r--doc/snac.559
1 files changed, 26 insertions, 33 deletions
diff --git a/doc/snac.5 b/doc/snac.5
index 02bd85b..0b58a2d 100644
--- a/doc/snac.5
+++ b/doc/snac.5
@@ -50,13 +50,11 @@ The following traditional ASCII emoticons or special strings are
50converted to related emojis: 50converted to related emojis:
51.Bd -literal 51.Bd -literal
52:-) :-D X-D ;-) B-) :-( :-* <3 :-/ 8-o 52:-) :-D X-D ;-) B-) :-( :-* <3 :-/ 8-o
53%-) :_( :-| :facepalm: :shrug: :eyeroll: 53%-) :_( :-| :facepalm: :shrug: :shrug2:
54:beer: :beers: :munch: :thumb: 54:eyeroll: :beer: :beers: :munch: :thumb:
55.Ed 55.Ed
56.El 56.El
57.Pp 57.Pp
58HTML tags are not filtered on input.
59.Pp
60.Ss Accepted HTML 58.Ss Accepted HTML
61All HTML tags in entries are neutered except the following ones: 59All HTML tags in entries are neutered except the following ones:
62.Bd -literal 60.Bd -literal
@@ -74,6 +72,10 @@ The base directory contains the following files and folders:
74Server configuration. 72Server configuration.
75.It Pa user/ 73.It Pa user/
76Directory holding user subdirectories. 74Directory holding user subdirectories.
75.It Pa object/
76Directory holding the ActivityPub objects. Filenames are hashes of each
77message Id, stored in subdirectories starting with the first two letters
78of the hash.
77.It Pa archive/ 79.It Pa archive/
78If this directory exists, all input and output messages are logged inside it, 80If this directory exists, all input and output messages are logged inside it,
79including HTTP headers. Only useful for debugging. May grow to enormous sizes. 81including HTTP headers. Only useful for debugging. May grow to enormous sizes.
@@ -87,36 +89,31 @@ has the user id as name and contains the following subdirectories and files:
87User configuration file. 89User configuration file.
88.It Pa key.json 90.It Pa key.json
89SHA-1 secret/public key PEM data. 91SHA-1 secret/public key PEM data.
90.It Pa actors/ 92.It Pa followers.idx
91This subdirectory stores cached 'Person' ActivityPub messages as JSON files. Each 93This file contains the list of followers as a list of hashed object identifiers.
92file name is an MD5 hash of the actor URL.
93.It Pa timeline/
94This subdirectory stores the user's timeline. Everytime a valid message arrives,
95it's stored in this directory as a JSON object. The file name spec is: a Unix
96timestamp followed by a hyphen followed by an MD5 of the message Id. Additionally,
97metadata for each message parent and children is stored under the '_snac' field;
98parent messages with new children are renamed with an updated timestamp so that
99the more recently updated thread is shown at the top. This directory is presented
100in the web interface in reverse file name order up to a maximum, hardcoded limit.
101These files are purged when they are considered old (this time can be changed by
102tweaking the server configuration).
103.It Pa local/
104This subdirectory stores all activities generated by this user as hardlinks to
105their analogue entries in the
106.Pa timeline/
107subdirectory.
108.It Pa followers/ 94.It Pa followers/
109This subdirectory stores the 'Follow' ActivityPub message from each 95This directory stores hard links to the actor objects in the object storage.
110Fediverse user that is following this user as a JSON file. Each file name is
111an MD5 hash of the actor that is a follower of this user.
112.It Pa following/ 96.It Pa following/
113This subdirectory stores the 'Follow' (not yet confirmed) or the 'Accept' 97This directory stores the users being followed as hard links to the 'Follow'
114(confirmed) ActivityPub message for each actor that is being followed. Each file 98or 'Accept' objects in the object storage. File names are the hashes of each
115name is an MD5 hash of the actor. 99actor Id.
100.It Pa private.idx
101This file contains the list of timeline entries as a list of hashed
102object identifiers.
103.It Pa private/
104This directory stores hard links to the timeline entries in the object storage.
105.It Pa public.idx
106This file contains the list of public timeline entries as a list of hashed
107object identifiers.
108.It Pa public/
109This directory stores hard links to the public timeline entries in the object
110storage.
116.It Pa muted/ 111.It Pa muted/
117This directory contains files which names are MD5 hashes of muted actors. The 112This directory contains files which names are hashes of muted actors. The
118content is a line containing the actor URL. 113content is a line containing the actor URL.
119Messages from these actors will be ignored on input and not shown in any timeline. 114Messages from these actors will be ignored on input and not shown in any timeline.
115.It Pa hidden/
116This directory contains references to the hidden timeline entries.
120.It Pa queue/ 117.It Pa queue/
121This directory contains the output queue of messages generated by the user as 118This directory contains the output queue of messages generated by the user as
122JSON files. File names contain timestamps that indicate when the message will 119JSON files. File names contain timestamps that indicate when the message will
@@ -133,10 +130,6 @@ web interface.
133.It Pa history/ 130.It Pa history/
134This directory contains generated HTML files. They may be snapshots of the 131This directory contains generated HTML files. They may be snapshots of the
135local timeline in previous months or other cached data. 132local timeline in previous months or other cached data.
136.It Pa archive/
137This directory is no longer used in version 2.x and later. It can be deleted.
138.Nm
139is run with a debug level >= 1.
140.El 133.El
141.Sh SEE ALSO 134.Sh SEE ALSO
142.Xr snac 1 , 135.Xr snac 1 ,