Skip to content
This repository
tag: REL_5_5_1
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 138 lines (104 sloc) 3.753 kb
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
#========================================================================#

# interchange.cfg
# See 'icconfig' document for details.

#========================================================================#

# These settings (DEBUG, FULL_URL, ROBOTS, SOAP, SWISH, TRAFFIC, UI,
# UI_LOCALE) all affect other configuration directives below.
#
# We read them from /etc/interchange/features.cfg resp.
# /etc/interchange/settings.cfg. You may modify the latter file
# manually (not recommended), with /usr/sbin/interchangeconfig
# or dpkg-reconfigure (only settings flagged with *).
#
# DEBUG: Set to 1 to send extra debugging info to file
# /var/log/interchange/debug.log and get a dump of global
# and catalog data structures.
# FULL_URL*: Set to 1 for enabling the FullURL configuration directive.
# ROBOTS*: Set to 1 to include Robots* configuration directives from
# robots.cfg.
# SOAP*: Set to 1 for enabling the SOAP server.
# SWISH: Set to 1 for enabling the Swish search.
# TRAFFIC*: Set to "low", "high", or "rpc" to get different server parameters.
# UI: Set to 1 to include back-end administration interface.

include /usr/lib/interchange/VERSION
include /etc/interchange/features.cfg
include /etc/interchange/settings.cfg

#========================================================================#

# Whether to consider the whole URL for determining the catalog or not

ifdef @FULL_URL
FullURL Yes
endif

#========================================================================#

# Read catalog definitions from two different locations:
# - catalogs.cfg is for custom catalogs
# - catalog.d/*.cfg is for catalogs installed by Debian packages
# Only catalogs listed there are handled by the expiry cron job

include /etc/interchange/catalogs.cfg
include /var/lib/interchange/catalog.d/*.cfg

#========================================================================#

Environment MOD_PERL

# Prevent arbitrary [file ...] and [include ...] among other things.
NoAbsolute Yes

ifdef @DEBUG

Message Sending debug to /var/log/interchange/debug.log
DebugFile /var/log/interchange/debug.log

# Dump global and catalog data structures to a text file at startup time.
# See /var/run/interchange/interchange.structure and
# {CatRoot}/{CatName}.structure.
DumpStructure Yes

# This logs DBI calls to your DebugFile.
# It's commented out by default because it generates a lot of messages.
#DataTrace 1

endif

ifdef TRAFFIC =~ /low/i
Message Low traffic settings.
HouseKeeping 3
MaxServers 5
PIDcheck 300
endif

ifdef TRAFFIC =~ /high/i
Message High traffic settings.
HouseKeeping 2
MaxServers 10
PIDcheck 120
endif

ifdef TRAFFIC =~ /rpc/i
Message RPC traffic settings.
PreFork Yes
StartServers 5
MaxRequestsPerChild 100
HouseKeeping 2
PIDcheck 120
endif

# Whether to run the SOAP server
ifdef @SOAP
SOAP Yes
endif

# Whether to enable the Swish search
ifdef @SWISH
Require module Vend::Swish
AddDirective Swish hash
Variable swish Vend::Swish
Variable SWISH_CMD /usr/bin/swish-e
endif

# Set this so cookies are issued only for the current catalog, not for
# the whole base domain.
Mall Yes

# Additional Safe operations to untrap beyond the standard "ftfile sort".
SafeUntrap rand

TcpMap localhost:7786 -

# Include back office administration UI if variable set above.
ifdef UI
Message Calling UI...
include lib/UI/ui.cfg
Variable UI_SECURE 1
endif

ifdef @ROBOTS
include /etc/interchange/robots.cfg
endif

# Include global usertags put up by the administrator
include /etc/interchange/usertag/*.tag

# Include if you want non-English error messages. Not complete.
# include locale.error

# Default CGI path
Variable CGI_BASE /cgi-bin/ic


Something went wrong with that request. Please try again.