Bug 7234: koha-common Debian package now includes koha-sites.conf
authorTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 27 Feb 2014 15:40:57 +0000 (12:40 -0300)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 3 Mar 2014 15:56:52 +0000 (15:56 +0000)
This patch adds a sample koha-sites.conf file, which will be
included by the koha-common package in /etc/koha (where it belongs).

It is fixed to include the current defaults (DOM indexing for both
biblios and authorities, disabled use of memcached, and good defaults
for a normal setup if enabled).

All options are commented for ease of use by average users.

To test
- verify that the defaults are sane (let me know if it needs to be
  fixed).
- build the package and verify that the file gets installed.

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
debian/templates/koha-sites.conf [new file with mode: 0644]

diff --git a/debian/templates/koha-sites.conf b/debian/templates/koha-sites.conf
new file mode 100644 (file)
index 0000000..c14cb3d
--- /dev/null
@@ -0,0 +1,61 @@
+# NOTE: for a complete list of valid options please read koha-create(8)
+
+## Apache virtual hosts creation variables
+#
+# Please note that the URLs are built like this:
+# OPAC:  http://<OPACPREFIX><INSTANCE NAME><OPACSUFFIX><DOMAIN>:<OPACPORT>
+# STAFF: http://<INTRAPREFIX><INSTANCE NAME><INTRASUFFIX><DOMAIN>:<INTRAPORT>
+DOMAIN=".myDNSname.org"
+INTRAPORT="80"
+INTRAPREFIX=""
+INTRASUFFIX="-intra"
+OPACPORT="80"
+OPACPREFIX=""
+OPACSUFFIX=""
+
+## Default data to be loaded
+#
+# DEFAULTSQL: filename
+# Specify an SQL file with default data to load during instance creation
+# default: (empty)
+DEFAULTSQL=""
+
+## Zebra global configuration variables
+#
+# ZEBRA_MARC_FORMAT: 'marc21' | 'normarc' | 'unimarc'
+# Specifies the MARC records format for indexing
+# default: 'marc21'
+ZEBRA_MARC_FORMAT="marc21"
+
+# ZEBRA_LANGUAGE: 'en' | 'es' | 'fr' | 'nb' | 'ru' | 'uk'
+# Primary language for Zebra indexing
+# default: 'en'
+ZEBRA_LANGUAGE="en"
+
+# BIBLIOS_INDEXING_MODE: 'dom' | 'grs1'
+# Indexing mode for bibliographic records
+# default: 'dom'
+BIBLIOS_INDEXING_MODE="dom"
+
+# AUTHORITIES_INDEXING_MODE: 'dom' | 'grs1'
+# Indexing mode for authorithy records
+# default: 'dom'
+AUTHORITIES_INDEXING_MODE="dom"
+
+## Memcached global configuration variables
+#
+# USE_MEMCACHED: 'yes' | 'no'
+# Make the created instance use memcached. Can be altered later.
+# default: 'no'
+USE_MEMCACHED="no"
+
+# MEMCACHED_SERVERS: comma separated list of memcached servers (ip:port)
+# Specify a list of memcached servers for the Koha instance
+# default: '127.0.0.1:11211'
+MEMCACHED_SERVERS="127.0.0.1:11211"
+
+# MEMCACHED_PREFIX:
+# Specify a string to be used as prefix for defining the memcached namespace
+# for the created instance.
+# default: 'koha_'
+MEMCACHED_PREFIX="koha_"