-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaps.txt
93 lines (71 loc) · 3.62 KB
/
caps.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
CAPS
These four characters must be at the beginning to identify the file
as successfully fetched.
This is a caps file. This contains a list of key=value pairs that are
useful to clients wishing to query the server for special information
without using extensions such as Gopher+. Not all clients support caps
queries, so your site should be navigable without it. This is an
optional feature and is not currently a Gopher protocol standard.
Blank lines and lines starting with # are ignored.
Clients should cache the information where possible.
Some servers may automatically generate caps files for you as a pseudo
selector. In that case, this file may serve only to supersede the
machine-generated keys. You should read your server documentation.
To use this file, customize it and place it in your server's root mountpoint
such that a fetch for selector "caps.txt" will retrieve it.
All keys are optional. Not all keys listed here need be specified, and
in fact many sites won't specify all of them. The client should be
prepared to deal with that too.
## CAPS META PROPERTIES ###
Spec version of this caps file. This should be the first key specified
so that an incompatible later format might be detected by the client.
CapsVersion=1
This tells the client the recommended caps cache expiry time, in seconds.
This particular property tells the client to refetch the caps file after
an hour has passed, preferentially. This is optional for the client to
implement.
ExpireCapsAfter=3600
## PATH SECTION. USE THESE DEFAULT VALUES IF YOU ARE ON A POSIX FILESYSTEM ###
This tells the client how to cut up a selector into a breadcrumb menu.
This is a simple ASCII string. If it is not specified, the selector is
treated as if it were opaque. The client may collapse consecutive
delimiters (e.g., x//y is treated as x/y) except if PathParentDouble is
true (for Mac).
PathDelimeter=/
This tells the client what the "identity" path is, i.e., it can treat
this as a no-op, turning x/./y into x/y. If this is not specified, the
literal path . is used.
PathIdentity=.
This tells the client what the parent path is, i.e., it can treat this
as a path instruction to delete previous path, turning x/y/../z into x/z
If this is not specified, the literal path .. is used.
PathParent=..
This tells the client that consecutive path delimeters are treated as
parent (mostly for Mac HFS prior to Mac OS X), e.g., turning
MacHD:x:y:::z into MacHD:z. If this is not specified, it is default FALSE.
PathParentDouble=FALSE
This tells the client the escape character for quoting the above
metacharacters. Most of the time this is \. If this is not specified,
no escape characters are used.
PathEscapeCharacter=\
This tells the client not to cut everything up to the first path delimeter.
Normally caps makes gopher://x/11/xyz and gopher://x/1/xyz both into /xyz
assuming your server is happy with the latter URL (almost all will be).
If this is not specified, it is by default FALSE. This should be TRUE
*only* if your server requires URLs like gopher://x/0xyz (i.e., the
selector should NOT start with the path delimiter).
PathKeepPreDelimeter=FALSE
## OTHER PROPERTIES ###
Some clients will or may make use of these; some won't.
Freetext description of the server software and server hardware.
ServerSoftware=Gopher for SMF
ServerSoftwareVersion=1.0
ServerArchitecture=Windows Server
ServerDescription=Gopher Server
ServerGeolocationString=New York, USA
This server allows experimental gopher tunneled over TLS.
#ServerTLSPort=7443
Special server features.
#ServerSupportsStdinScripts=TRUE
An E-mail contact for the server.
ServerAdmin=youremail@email.com