source: trunk/config/dist/base.config @ 7548

Last change on this file since 7548 was 7548, checked in by Nicklas Nordborg, 4 years ago

Fixes #2134: Deprecate secondary storage

Code and documentatation has been updated.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
File size: 11.6 KB
Line 
1# $Id: base.config 7548 2018-12-10 11:53:32Z nicklas $
2#
3# Copyright (C) 2006 Nicklas Nordborg
4# Copyright (C) 2007 Nicklas Nordborg, Martin Svensson
5#
6# This file is part of BASE - BioArray Software Environment.
7# Available at http://base.thep.lu.se/
8#
9# BASE is free software; you can redistribute it and/or
10# modify it under the terms of the GNU General Public License
11# as published by the Free Software Foundation; either version 3
12# of the License, or (at your option) any later version.
13#
14# BASE is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with BASE. If not, see <http://www.gnu.org/licenses/>.
21# ----------------------------------------
22
23# =======================
24# Database driver section
25# =======================
26
27# -----
28# MySQL
29# -----
30db.dialect          = org.hibernate.dialect.MySQL5InnoDBDialect
31db.url              = jdbc:mysql://localhost/base2?characterEncoding=UTF-8&useCursorFetch=true&defaultFetchSize=100&useServerPrepStmts=true
32db.dynamic.catalog  = base2dynamic
33db.queries          = /mysql-queries.xml
34#export.max.items    = 20000
35
36# --------
37# Postgres
38# --------
39#db.dialect          = org.hibernate.dialect.PostgreSQL9Dialect
40#db.url              = jdbc:postgresql:base2
41#db.dynamic.schema   = dynamic
42#db.queries          = /postgres-queries.xml
43
44# -------------
45# Common to all
46# -------------
47db.username            = base2user
48db.password            = password
49db.extended-properties = /extended-properties.xml
50db.raw-data-types      = /raw-data-types.xml
51db.batch-size          = 50
52# Number of hours between cleanup of unused items in the database
53# Set to 0 to disable (recommended for job agents)
54db.cleanup.interval    = 24
55
56
57# ======================
58# Authentication section
59# ======================
60
61# If extra information such as address, email, phone, etc. should
62# be synchronized or not from external authentication managers
63#auth.synchronize    = 0
64
65# If passwords should be cached locally or not to allow
66# fallback to internal authentication when external authentication
67# system is not responding
68#auth.cachepasswords = 0
69
70# Number of days to cache passwords locally
71#auth.daystocache    = 0
72
73
74# ==========================
75# Internal job queue section
76# ==========================
77# If the internal job queue should be enabled or not
78jobqueue.internal.enabled            = true
79
80# Signal receiver class for sending signals to running jobs (to abort them)
81jobqueue.internal.signalreceiver.class = net.sf.basedb.core.signal.LocalSignalReceiver
82jobqueue.internal.signalreceiver.init  = jobqueue:0
83
84# If plugins with useInteralJobQueue = false should be executed or not
85jobqueue.internal.runallplugins      = false
86
87# The maximum thread priority for any thread executing a plug-in
88#jobqueue.internal.maxthreadpriority  = 4
89
90# Number of seconds between checks to the job queue
91jobqueue.internal.checkinterval      = 30
92
93# NOTE! A quick job may use threads from any of the "slower" pools
94# if there is place for another thread
95# Number of threads to reserved for jobs that takes < 1 minute to execute
96jobqueue.internal.shortest.threads   = 1
97#jobqueue.internal.shortest.threadpriority = 4
98
99# Number of threads to reserved for jobs that takes < 10 minutes to execute
100jobqueue.internal.short.threads      = 1
101#jobqueue.internal.short.threadpriority = 4
102
103# Number of threads to reserved for jobs that takes < 1 hour to execute
104jobqueue.internal.medium.threads     = 2
105#jobqueue.internal.medium.threadpriority = 3
106
107# Number of threads to reserved for jobs that takes > 1 hour to execute
108jobqueue.internal.long.threads       = 4
109#jobqueue.internal.long.threadpriority = 3
110
111# ==========================
112# External job agent section
113# ==========================
114
115# Number of seconds to cache information from a job agent before it
116# is reloaded. The default value is 60 seconds.
117agent.maxage=60
118
119# The timeout in milliseconds to use when connecting to job agents to
120# get information. The default value is 1000 milliseconds.
121agent.connection.timeout=1000
122
123
124# =========================
125# Secondary storage section
126# =========================
127#
128# DEPRECTAED SINC BASE 3.14. IT WILL BE REMOVED IN A NEAR FUTURE.
129#
130# The classname of the driver; leave empty to disable secondary storage
131# secondary.storage.driver   = net.sf.basedb.core.InternalStorageController
132
133# Initialisation options to the seconday storage controller
134# The internal implementation wants a path to the secondary directory
135# secondary.storage.init     = /usr/local/base2/secondary
136
137# The interval (in seconds) between checks for new files to move
138# secondary.storage.interval = 3600
139
140# Comma-separated list of time values (hours:minutes) when the controller
141# should be executed; overrides the interval setting if present
142# secondary.storage.time = 18:15,07:30
143
144# =========================
145# Change history section
146# =========================
147
148# Change history for items can be logged with the help of extensions.
149# BASE ships with a built-in extension that log changes to the database.
150# This is disabled by default, but can be enabled through the web
151# interface: Adminstrate -> Plug-ins & extensions -> Overview
152
153# If the "Change history" tab should be visible in the web interface
154# or not. It is hidden by default.
155# changelog.show-in-web = true
156
157# If DB logger should log detailed information about which properties
158# that has been updated (default: false)
159# changelog.dblogger.detailed-properties = true
160
161# If the DB logger should log the old property values when they
162# are modified (default: false; ingored unless 'detailed-properties'
163# is enabled).
164# changelog.dblogger.old-property-values = true
165
166
167# ==========================
168# SMTP server section
169# ==========================
170
171# SMTP server for outgoing mail. If not specified,
172# mail sending and 2-factor login will be disabled
173# mail.server.host
174
175# The port number the SMTP server is listening on. If not
176# specified the default port is used (25 or 465 if ssl is enabled)
177# mail.server.port = 25
178
179# A flag to enable SSL encryption
180# mail.server.ssl = 0
181
182# A flag to enable TLS encryption
183# mail.server.tls = 0
184
185# Email to use in the "From" address. If not specified,
186# mail sending will be disabled
187# mail.from.email = noreply@mail.yourdomain
188
189# Name to use in the "From" address. If not specified,
190# a default value is created automatically using the
191# host name of the BASE server.
192# mail.from.name
193
194
195# =======================
196# Plug-ins and extensions
197# =======================
198
199# The path to the directory where external plugins are installed
200plugins.dir=/usr/local/base2/plugins
201
202# Set this flag to disable all external extensions
203extensions.disabled = false
204
205
206# ===============
207# General section
208# ===============
209
210# Title that is displayed in the browser tab. Use $VERSION to include
211# the current BASE version and $SERVER to include the server name.
212app.title = BASE $VERSION @ $SERVER
213
214# The path to the directory where uploaded files are stored
215userfiles = /usr/local/base2/files
216
217# Number of minutes to keep permission information for the logged
218# in user in memory before it is reloaded from the database.
219permission.timeout = 10
220
221# Number of minutes to keep SessionControl object in the cache
222# after the last use
223cache.timeout = 20
224
225# If the static cache should be disabled or enabled
226# Disabling the static cache may reduce performance for
227# certain operations
228cache.static.disabled = false
229
230# Timeout (in days) for items in the static cache
231# Items that hasn't been accessed in the configured amount of
232# of time will be removed from the cache
233cache.static.max-age = 30
234
235#Overwrite the existing help texts when updating the program
236helptext.update = true
237
238# Set to 1 to disable auto-compression of uploaded files
239autocompress.disable = 0
240
241# Locale settings are used to customize gui text and labels
242# locale.language =
243# locale.country =
244# locacle.variant =
245
246# The default character set that will be used to parse text files that
247# hasn't specified a character set. The default value for this setting
248# is ISO-8859-1.
249#
250# defaultCharset = ISO-8859-1
251
252# A comma-separated list of the most commonly used character sets for text
253# files. This list is used to order selection lists so that the common values
254# are listed at the top of the list.
255#
256# commonCharsets = UTF-8,US-ASCII,ISO-8859-1
257
258# A regular expression that used to filter character sets that are not used
259# in order to keep the selection list shorter. If no value is specified all
260# character sets are included. The standard setting will filter out all
261# character sets starting with 'x-' or 'IBM'. Character sets that are specified
262# in the commonCharsets setting are never filtered.
263#
264ignoreCharsets = ((x|X)\-|IBM).*
265
266# ===================
267# Geolocation section
268# ===================
269
270# URL to the 'ipstack' (previously 'freegeoip') server. Use {IP} as a
271# placeholder for the IP address. The service should return a JSON
272# data object. Before it can be used you need to register and receive
273# an API key. See https://ipstack.com/ for more information.
274# Replace [API_KEY] in the URL below and uncomment the setting to
275# activate geolocation lookup.
276# geolocation.freegeoip = http://api.ipstack.com/{IP}?access_key=[API_KEY]&output=json
277
278# A template URL for displaying a map with a marker on a specified location
279# Use {LAT} and {LONG} as placeholders for the latitude and longitude
280# If no template is specified map links will not be created. The default
281# configuration use OpenStreetMap, or you can switch to Google Maps or
282# some other map provide that supports a latitude/longitude location.
283geolocation.maptemplate = https://www.openstreetmap.org/?mlat={LAT}&mlon={LONG}#map=11/{LAT}/{LONG}
284# geolocation.maptemplate = https://www.google.com/maps/search/?api=1&query={LAT},{LONG}
285
286# ===============
287# SSL section
288# ===============
289# Configuration settings for supporting file access via https.
290# Changes are only needed if authentication is needed or if, for example,
291# files are stored on servers with self-signed certificates.
292
293# ssl.context.protocol = TLS
294# ssl.context.provider =
295# ssl.keystore.file =
296# ssl.keystore.password =
297# ssl.keystore.type = JKS
298# ssl.keystore.algorithm = SunX509
299# ssl.keystore.provider =
300# ssl.truststore.file = <java-home>/jre/lib/security/cacerts
301# ssl.truststore.password = changeit
302# ssl.truststore.type = JKS
303# ssl.truststore.algorithm = PKIX
304# ssl.truststore.provider =
305
306# ===================
307# Migration section
308# ===================
309# Configuration settings that are related to migrating a BASE
310# installation on a MySQL database to a PostgreSQL database.
311# See documentation for more information.
312
313# Enable this flag to compress the exported data. This may increase
314# performance if disks are slow.
315# migrate.export.compress = 0
316
317# The number of rows that should be fetched at the same time from
318# the database. Increasing this value may give better performance
319# but requires more memory.
320# migrate.export.fetch-size = 20000
321
322# Enable this flag to issue an SQL statment for statistical
323# analysis of the imported data before continuing with the next table.
324# Disabling this may result in very poor performance.
325# migrate.import.analyze = 1
326
327# Enable this flag to drop the primary key of a table before importing
328# data to it. This may increase the performance. The primary key is
329# re-created after the data has been imported.
330# migrate.import.drop-primary-key = 1
331
332# Enable this flag to drop unique constraints and indexes before importing
333# data. This may increase the performance. The constraints and indexes
334# are re-created after the data has been imported. NOTE! Foreign key
335# constraints are not affected by this flag, since they must always be dropped.
336# migrate.import.drop-constraints = 1
337
338
Note: See TracBrowser for help on using the repository browser.