File: gopherd.conf

package info (click to toggle)
gopher 2.3-2
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 2,364 kB
  • ctags: 2,030
  • sloc: ansic: 22,451; perl: 1,950; sh: 1,510; makefile: 397; asm: 1
file content (241 lines) | stat: -rw-r--r-- 5,285 bytes parent folder | download | duplicates (2)
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
#moooooooo
# $Id: gopherd.conf,v 3.29 1995/11/03 18:03:07 lindner Exp $
#

#
# An example gopherd.conf file
#

#---------------------------------------------------------------------
# The 'Canonical' name for this gopher server, if different from the hostname
#
#  format is:
#
#  "hostalias: <hostname alias>"
#hostalias: gopher.turnip.com

#---------------------------------------------------------------------
# How long do we honor .cache and .cache+ files for directories?
#
# Format is 
#   cachetime: <time in seconds>
#

Cachetime: 180


#---------------------------------------------------------------------
# File decoders.  Run the given program on the file with the specific
# extension.
#

decoder: .Z /usr/ucb/zcat
decoder: .gz /usr/gnu/bin/zcat
#decoder: .adpcm /usr/openwin/bin/adpcm_dec
#decoder: .z /usr/gnu/bin/zcat


#---------------------------------------------------------------------
# Pid directory..  This is a scratch directory for concurrent session load
# limiting..  Needs to be inside your gopher-data directory if running
# chrooted.  This stuff is very beta right now.
#

#PIDS_Directory: /pids

#---------------------------------------------------------------------
# Map filename extensions to gopher-types
#
# Format is 
#  viewext: <extension> <gophertype> <pfx> <gopher+type> [ISO langauge]
#

# Text files
viewext: .txt 0 0 Text/plain En_US
viewext: .msg 0 0 Text/plain En_US
#viewext: .doc 0 0 Text/plain En_US
viewext: .notes 0 0 Text/plain En_US
viewext: .readme 0 0 Text/plain En_US

# Different Languages

viewext: .txt.english 0 0 Text/plain En_GB
viewext: .txt.spanish 0 0 Text/plain Es_ES
viewext: .txt.portuguese 0 0 Text/plain Pt_PT
viewext: .txt.german 0 0 Text/plain De_DE
viewext: .txt.french 0 0 Text/plain Fr_FR

# Macintosh hqx files

viewext: .hqx 4 0 application/mac-binhex40


# Graphics file formats
viewext: .gif I 9 image/gif
viewext: .jpg I 9 image/JPEG
viewext: .tif I 9 image/tiff
viewext: .rip 0 0 text/rip

# Sounds
viewext: .au s s audio/basic
viewext: .snd s s audio/basic
viewext: .wav s s audio/microsoft-wave
viewext: .mod s s audio/soundtracker

# Movies
viewext: .mov ; 9 video/quicktime
viewext: .mpg ; 9 video/mpeg

# Worlds
viewext: .wrl v 0 world/vrml
viewext: .nff v 0 world/nff
viewext: .geo v 0 world/geom


#
# Adobe Portable Document Format
#
viewext: .pdf P 9 application/pdf

#
# Binary files..
#

viewext: .zip 5 9 application/zip
viewext: .arj 5 9 application/x-arj
viewext: .zoo 5 9 application/x-zoo
viewext: .arc 5 9 application/x-arc
viewext: .lzh 5 9 application/x-lzh
viewext: .lha 5 9 application/x-lha
viewext: .dms 5 9 application/x-dms
viewext: .sea 9 9 application/x-mac-sea
viewext: .vbx 5 9 application/x-vbx

viewext: .tar.Z 9 9 application/x-tarZ
viewext: .tar 9 9 application/x-tar
viewext: .exe 5 9 application/x-pcexe
viewext: .bck 9 9 application/x-bck
viewext: .sav 9 9 application/x-saveset
viewext: .bin 9 9 application/x-bin

viewext: .ps 0 9 application/postscript
viewext: .tex 0 0 application/x-tex
viewext: .dvi 0 9 application/x-dvi
viewext: .troff 0 0 Text/x-troff
viewext: .shar 0 0 application/x-shell-archive

#
# These are defined by IANA..
#
viewext: .rtf 0 0 application/rtf
viewext: .word 0 0 application/MSWord
viewext: .mw 0 0 application/MacWriteII
viewext: .wp 5 5 application/dca-rft
viewext: .rch 0 0 Text/richtext
viewext: .wri 9 9 application/Microsoft-write
viewext: .gd 1 0 application/gopher-menu
viewext: .gpd 1 0 application/gopher+-menu
#
#
viewext: .mindex 7 mindex: application/gopher-menu
viewext: .src 7 waissrc: Directory
viewext: .html h 0 text/html

#
# These are for the experimental gview
#
#viewext: .gview 1 1 Directory+/gview
#blockext: .spot GVIEWSPOT

#
# Map files to certain blocks
# 

blockext: .abstract ABSTRACT
blockext: .keywords KEYWORDS
blockext: .ask ASK
blockext: .3d 3D

#
# Find out what a file is by looking at the contents
# (Not implemented yet...)
#
#magic 0 GIF 9 I Gif
#magic 0 snd s s audio/basic

#
# Note that mail spool files are still done by the server
#

#
# Trash we never want to see (Note that it checks from the end)
# so you can ignore anything with a certain extension.
# (like emacs backup files)
#
ignore: lost+found
ignore: lib
ignore: bin
ignore: etc
ignore: dev
ignore: ~
ignore: .cache
ignore: .cache+
ignore: .forward
ignore: .message
ignore: .hushlogin
ignore: .kermrc
ignore: .notar
ignore: .where
ignore: veronica.ctl
ignore: robots.txt
ignore: nohup.out


#
# ignore_patt uses regular expressions to ignore files.  See the man page
# for ed(1)
#

ignore_patt: ^core$
ignore_patt: ^usr$
ignore_patt: ^tmp$



#
# Regular expressions for splitting files into multiple parts..
#

filesep: ^----------------------------------------------

#
# A reference to another file
# If the filename doesn't begin with a slash then the system will look
# in the default SERVERDIR  
#
include: ./gopherdlocal.conf


#
# Scripts that can automatically generate blocks..
#

#BlockScript: ABSTRACT /bin/autoabstract
#BlockScript: KEYWORDS /bin/autokeywords


#
# How many concurrent connections can we handle?
#

MaxConnections: 20

#
# Where shall we listen for HTTP queries
#

HTTPport: 8002
groupdir: /tmp/groups

Authitem: unixfile /secure etc/mypasswd staff,other,something
Serverpw: super_secret_squirrel