# This is the ABC CGI setup on jc.tzo.net:

	$fqdn = 'jc.tzo.net' unless $fqdn;	# What to call this machine in URLs

# Some default values for error checking:
	$Vtest = 1;			# Debug level from test addresses
	$minreqdelay = 3;	# Min time between requests.
	$taintcheck = 0;	# Do extra taint checks

# Some system files:
	$find_cmd = '/usr/bin/find';	# Which find command to use
	$rm_cmd   = '/bin/rm';			# Which rm command to use

# Load balancing params:
	$loadbalancing = 1;	# Should we do load balancing?
	%Load = (			# Key: host name; Val: portion of load
		'' => 5,		# Localhost
		'jc.tzo.net' => 5,
		'trillian.mit.edu' => 5,
	);

# Flags to control ads and search widgets:
	$senddisc = 1;		# Disclaimer "no recordings here"
#
	$sendads    = 1;	# Should we send ads?
	$sendsrch   = 1;	# Should we send a search widget?
	$sendnotice = 0;	# Should we send the FT_notices_* file?
	$sendinfo   = 0;	# Should we send the FT_info_* file?
# 
	$googleads   = '';	# Google ad string
	$googlesrchs = '';	# Google search string
#
	$googleadsf  = 'FT_googleads.html';		# Google ad file
	$googlesrchf = 'FT_googlesrch.html';	# Google search file

# Blacklist to block rabid search bots:
	@blacklist = (	# Patterns to reject IP addresses.
		'81\.220\.14\.79',		# New search engine [20041028]
		'^192\.169\.41\.\d+$',	# Search engine that invokes CGI scripts.
		'^209\.86\.219\.23$',	# Search engine that invokes CGI scripts.
		'^209\.202\.148\.52',	# Search engine from fast-search.net.
		'^208\.21\.196\.83',	# Unknown search engine.
		'^216\.187\.157\.\d+',	# Unknown search engine.
		'195\.8\.71\.47',		# r2.dee.to calls TuneGet repeatedly without args.
		'67\.113\.225\.66',		# 20050425 Calls TuneGet for every abc file F=MIDI
	);
	$blackdelay = 10;			# Delay before blacklist messages

	$homedir = 		# Our home directory.
		'/hda/home/jc';
	$bindir = 		# Binaries for this machine
		"$homedir/bin";
	$lbindir = 		# Binaries for this machine
		'/usr/local/bin';
	%Cmd = (
		'gs'     => '/usr/bin/gs',		# ghostscript's location
		'ps2pdf' => '/usr/bin/ps2pdf',	# PS-to-PDF converter
	);
	$a2p = "$homedir/bin/jcabc2ps";	# Which abc2ps to use

	$usrurl   = '/~jc';		# User id part of URLs.

	$webdir   = "$homedir/p";			# Where our web files are installed.
	$indexdir = "$webdir/music/ndx";	# Where to find the ABC index files.
	$botdir   = "$webdir/music/bot";	# Where to find the ABC search bot.
	$snmpdir  = "$webdir/snmp";			# Where SNMP stuff is installed here.

	$cgidir   = "$webdir/cgi/abc";		# Where CGI scripts are kept.
	$cgibin   = "$cgidir/kendy-bin"; 	# Localized binary executables
	$cgiurl   = "$usrurl/cgi/abc";		# Where to find CGI scripts.

	$docdir   = "$cgidir/doc";			# Where to find docs to send
	$docurl   = "$cgiurl/doc";			# Where to find docs to send

	$abcdir   = "$webdir/music/abc";	# Full path to ABC directory.
	$abcurl   = "$usrurl/music/abc";		# URL for ABC directory.
	%ABCdir = (		# Paths to various ABC directories.
		'500' => 'music/book/500',
		'abc' => 'music/abc',
		'bot' => 'music/bot',
		'contrib' => 'music/abc/contrib',
		'index' => 'music/ndx',
		'ndx' => 'music/ndx',
		'oneills' => 'music/book/oneills',
		'playford' => 'music/book/playford',
		'ryan-cole' => 'music/book/ryan-cole',
#		'RJ' => 'music/book/RJ',
	);
	%ABCttl = (		# Titles for various ABC directories.
		'500' => '500 Tunes of the British Isles',
		'abc' => "JC's ABC Tune Archive",
		'bot' => "JC's ABC Web Bot",
		'contrib' => 'ABC Contributions',
		'index' => "JC's ABC index",
		'ndx' => "JC's ABC index",
		'oneills' => "Online O'Neill's Collection",
		'playford' => 'Online Playford Collection',
		'ryan-cole' => 'Online Ryan/Cole Collection',
		'RJ' => 'Roaring Jelly Collection',
	);
	push @INC, "$cgidir", "$cgidir/abc";
	$ENV{PATH} = "$cgibin:$cgidir:$bindir:$lbindir:$ENV{PATH}";
	$tmpdir =		# Where to put files.
		"$webdir/tmp";
	$tmpurl =		# Where to find tmp files.
		"$usrurl/tmp";
	push @INC, "$cgidir", "$cgidir/abc";
	$ENV{PATH} = "$cgidir:$cgidir/abc:$ENV{PATH}";
	use CGI_Lite;	# Required perl module.
	use CGI::Carp 'fatalsToBrowser';
1;
