#moooooooo
# $Id: gopherd.conf.in,v 1.3 2002/02/13 03:10:55 jgoerzen 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 /bin/zcat
decoder: .gz /bin/zcat
#decoder: .adpcm /usr/openwin/bin/adpcm_dec
decoder: .z /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: .png I 9 image/png
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.gz 9 9 application/x-gtar
viewext: .tgz 9 9 application/x-gtar
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: .deb 9 9 application/x-debian-package
viewext: .rpm 9 9 application/octet-stream
viewext: .mp3 s s audio/x-mpeg
viewext: .ogg s s audio/x-ogg
viewext: .mp2 s s audio/x-mpeg

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

# Data and infocom files

viewext: .z1 9 9 application/octet-stream
viewext: .z2 9 9 application/octet-stream
viewext: .z3 9 9 application/octet-stream
viewext: .z4 9 9 application/octet-stream
viewext: .z5 9 9 application/octet-stream
viewext: .z6 9 9 application/octet-stream
viewext: .z7 9 9 application/octet-stream
viewext: .z8 9 9 application/octet-stream
viewext: .dat 9 9 application/octet-stream


#
# 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: @sysconfdir@/gopherd/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
