2 ; DO NOT DELETE THE ABOVE LINE!!!
3 ; Doing so will expose
this configuration file through your web site!
4 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
8 ; config.TEMPLATE.inc.php
10 ; Copyright (c) 2014-2020 Simon Fraser University
11 ; Copyright (c) 2003-2020 John Willinsky
12 ; Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
14 ; OMP Configuration settings.
15 ; Rename config.TEMPLATE.inc.php to config.inc.php to use.
18 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
27 ; Set
this to On once the system has been installed
28 ; (This is generally done automatically by the installer)
31 ; The canonical URL to the OMP installation (excluding the trailing slash)
32 base_url =
"http://localhost/git/omp"
35 session_cookie_name = OMPSID
37 ;
Session cookie path;
if not specified, defaults to the detected base path
38 ; session_cookie_path = /
40 ; Number of days to save login cookie
for if user selects to remember
41 ; (
set to 0 to force expiration at end of current session)
44 ; Enable support
for running scheduled tasks
45 ; Set
this to On
if you have
set up the scheduled tasks script to
46 ; execute periodically
49 ; Scheduled tasks will send email about processing
50 ; only in
case of errors. Set to off to receive
51 ;
all other kind of notification, including success,
52 ; warnings and notices.
53 scheduled_tasks_report_error_only = On
56 ; Please refer to lib/pkp/registry/timeZones.xml
for a full list of supported
59 ; <entry key=
"Europe/Amsterdam" name=
"Amsterdam" />
60 ; time_zone=
"Amsterdam"
63 ; Short and
long date formats
64 date_format_trunc =
"%m-%d"
65 date_format_short =
"%Y-%m-%d"
66 date_format_long =
"%B %e, %Y"
67 datetime_format_short =
"%Y-%m-%d %I:%M %p"
68 datetime_format_long =
"%B %e, %Y - %I:%M %p"
69 time_format =
"%I:%M %p"
71 ; Use URL parameters instead of CGI PATH_INFO. This is useful
for broken server
72 ; setups that don
't support the PATH_INFO environment variable.
73 ; WARNING: This option is DEPRECATED and will be removed in the future.
74 disable_path_info = Off
76 ; Use fopen(...) for URL-based reads. Modern versions of dspace
77 ; will not accept requests using fopen, as it does not provide a
78 ; User Agent, so this option is disabled by default. If this feature
79 ; is disabled by PHP's configuration,
this setting will be ignored.
82 ; Base URL
override settings: Entries like the following examples can
83 ; be used to
override the base URLs used by OMP. If you want to use a
84 ; proxy to rewrite URLs to OMP, configure your proxy
's URL here.
85 ; Syntax: base_url[press_path] = http://www.myUrl.com
86 ; To override URLs that aren't part of a particular press, use a
87 ; press_path of
"index".
89 ; base_url[index] = http:
90 ; base_url[myPress] = http:
91 ; base_url[myOtherPress] = http:
93 ; Generate RESTful URLs
using mod_rewrite. This requires the
94 ; rewrite directive to be enabled in your .htaccess or httpd.conf.
95 ; See FAQ
for more details.
98 ; Allow the X_FORWARDED_FOR header to
override the REMOTE_ADDR as the source IP
99 ; Set
this to
"On" if you are behind a reverse proxy and you control the
100 ; X_FORWARDED_FOR header.
101 ; Warning: This defaults to
"On" if unset
for backwards compatibility.
102 trust_x_forwarded_for = Off
104 ; Allow javascript files to be served through a content delivery network (
set to
105 ; off to use local files)
108 ; Set the following parameter to off
if you want to work with the uncompiled
109 ; (non-minified) JavaScript source
for debugging or
if you are working off a
110 ; development branch without compiled JavaScript.
111 enable_minified = Off
113 ; Provide a unique site ID and
OAI base URL to
PKP for statistics and security
114 ; alert purposes only.
118 ;;;;;;;;;;;;;;;;;;;;;
119 ; Database Settings ;
120 ;;;;;;;;;;;;;;;;;;;;;
129 ; Set the non-standard port and/or socket,
if used
131 ; unix_socket = /var/run/mysqld/mysqld.sock
134 ; Enable persistent connections (recommended)
137 ; Enable database debug output (very verbose!)
146 ; The type of data caching to use. Options are:
147 ; - memcache: Use the memcache server configured below
148 ; - file: Use file-based caching; configured below
149 ; - none: Use no caching. This may be extremely slow.
150 ; This setting affects locale data, press settings, and plugin settings.
154 ; Enable memcache support
155 memcache_hostname = localhost
156 memcache_port = 11211
158 ; For site visitors who are not logged in, many pages are often entirely
159 ; static (e.g. About, the home page, etc). If the option below is enabled,
160 ; these pages will be cached in local flat files for the number of hours
161 ; specified in the web_cache_hours option. This will cut down on server
162 ; overhead for many requests, but should be used with caution because:
163 ; 1) Things like press metadata changes will not be reflected in cached
164 ; data until the cache expires or is cleared, and
165 ; 2) This caching WILL NOT RESPECT DOMAIN-BASED SUBSCRIPTIONS.
166 ; However, for situations like hosting high-volume open access presses, it's
167 ; an easy way of decreasing server load.
169 ; When using web_cache, configure a tool to periodically clear out cache files
170 ; such as CRON. For example, configure it to run the following command:
171 ; find .../ojs/cache -maxdepth 1 -name wc-\*.html -mtime +1 -exec rm "{}
" ";
"
176 ;;;;;;;;;;;;;;;;;;;;;;;;;
177 ; Localization Settings ;
178 ;;;;;;;;;;;;;;;;;;;;;;;;;
185 ; Client output/input character set
186 client_charset = utf-8
188 ; Database connection character set
189 ; Must be set to "Off
" if not supported by the database server
190 ; If enabled, must be the same character set as "client_charset
"
191 ; (although the actual name may differ slightly depending on the server)
192 connection_charset = utf8
201 ; Complete path to directory to store uploaded files
202 ; (This directory should not be directly web-accessible)
203 ; Windows users should use forward slashes
206 ; Path to the directory to store public uploaded files
207 ; (This directory should be web-accessible and the specified path
208 ; should be relative to the base OMP directory)
209 ; Windows users should use forward slashes
210 public_files_dir = public
212 ; The maximum allowed size in bytes of each user's public files
213 ; directory. This is where user's can upload images through the
214 ; tinymce editor to their bio. Editors can upload images for
215 ; some of the settings.
216 ; Set this to 0 to disallow such uploads.
217 public_user_dir_size = 5000
219 ; Permissions mask for created files and directories
222 ; The minimum percentage similarity between filenames that should be considered
223 ; a possible revision
224 filename_revision_match = 70
226 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
227 ; Fileinfo (MIME) Settings ;
228 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
231 ; mime_database_path = /etc/magic.mime
234 ;;;;;;;;;;;;;;;;;;;;;
235 ; Security Settings ;
236 ;;;;;;;;;;;;;;;;;;;;;
240 ; Force SSL connections site-wide
243 ; Force SSL connections for login only
244 force_login_ssl = Off
246 ; This check will invalidate a session if the user's IP address changes.
247 ; Enabling this option provides some amount of additional security, but may
248 ; cause problems for users behind a proxy farm (e.g., AOL).
249 session_check_ip = Off
251 ; The encryption (hashing) algorithm to use for encrypting user passwords
252 ; Valid values are: md5, sha1
253 ; NOTE: This hashing method is deprecated, but necessary to permit gradual
254 ; migration of old password hashes.
257 ; The unique salt to use for generating password reset hashes
258 salt = "YouMustSetASecretKeyHere!!
"
260 ; The number of seconds before a password reset hash expires (defaults to
261 ; 7200 seconds (2 hours)
264 ; Allowed HTML tags for fields that permit restricted HTML.
265 ; Use e.g. "img[src,alt],
p" to allow "src
" and "alt
" attributes to the "img
"
266 ; tag, and also to permit the "p" paragraph tag. Unspecified attributes will be
268 allowed_html = "a[href|target|title],em,strong,cite,code,ul,ol,li[
class],dl,dt,dd,b,i,u,img[src|alt],sup,sub,br,
p"
270 ;Is implicit authentication enabled or not
274 ;Implicit Auth Header Variables
276 ;implicit_auth_header_first_name = HTTP_TDL_GIVENNAME
277 ;implicit_auth_header_last_name = HTTP_TDL_SN
278 ;implicit_auth_header_email = HTTP_TDL_MAIL
279 ;implicit_auth_header_phone = HTTP_TDL_TELEPHONENUMBER
280 ;implicit_auth_header_initials = HTTP_TDL_METADATA_INITIALS
281 ;implicit_auth_header_mailing_address = HTTP_TDL_METADATA_TDLHOMEPOSTALADDRESS
282 ;implicit_auth_header_uin = HTTP_TDL_TDLUID
284 ; A space delimited list of uins to make admin
285 ;implicit_auth_admin_list = "100000040@tdl.org 85B7FA892DAA90F7@utexas.edu 100000012@tdl.org
"
287 ; URL of the implicit auth 'Way Finder' page. See pages/login/LoginHandler.inc.php for usage.
289 ;implicit_auth_wayf_url = "/Shibboleth.sso/wayf
"
299 ; Use SMTP for sending mail instead of mail()
302 ; SMTP server settings
303 ; smtp_server = mail.example.com
306 ; Enable SMTP authentication
307 ; Supported mechanisms: ssl, tls
309 ; smtp_username = username
310 ; smtp_password = password
312 ; Allow envelope sender to be specified
313 ; (may not be possible with some server configurations)
314 ; allow_envelope_sender = Off
316 ; Default envelope sender to use if none is specified elsewhere
317 ; default_envelope_sender = my_address@my_host.com
319 ; Force the default envelope sender (if present)
320 ; This is useful if setting up a site-wide noreply address
321 ; The reply-to field will be set with the reply-to or from address.
322 ; force_default_envelope_sender = Off
324 ; Force a DMARC compliant from header (RFC5322.From)
325 ; If any of your users have email addresses in domains not under your control
326 ; you may need to set this to be compliant with DMARC policies published by
327 ; those 3rd party domains.
328 ; Setting this will move the users address into the reply-to field and the
329 ; from field wil be rewritten with the default_envelope_sender.
330 ; To use this you must set force_default_enveloper_sender = On and
331 ; default_envelope_sender must be set to a valid address in a domain you own.
332 ; force_dmarc_compliant_from = Off
334 ; The display name to use with a DMARC compliant from header
335 ; By default the DMARC compliant from will have an empty name but this can
336 ; be changed by adding a text here.
337 ; You can use '%n' to insert the users name from the original from header
338 ; and '%s' to insert the localized sitename.
339 ; dmarc_compliant_from_displayname = '%n via %s'
341 ; Amount of time required between attempts to send non-editorial emails
342 ; in seconds. This can be used to help prevent email relaying via OMP.
343 time_between_emails = 3600
345 ; Maximum number of recipients that can be included in a single email
346 ; (either as To:, Cc:, or Bcc: addresses) for a non-priveleged user
349 ; If enabled, email addresses must be validated before login is possible.
350 require_validation = Off
352 ; Maximum number of days before an unvalidated account expires and is deleted
353 validation_timeout = 14
362 ; Minimum indexed word length
365 ; The maximum number of search results fetched per keyword. These results
366 ; are fetched and merged to provide results for searches with several keywords.
367 results_per_keyword = 500
369 ; The number of hours for which keyword search results are cached.
370 result_cache_hours = 1
372 ; Paths to helper programs for indexing non-text files.
373 ; Programs are assumed to output the converted text to stdout, and "%s
" is
374 ; replaced by the file argument.
375 ; Note that using full paths to the binaries is recommended.
376 ; Uncomment applicable lines to enable (at most one per file type).
377 ; Additional "index[MIME_TYPE]
" lines can be added for any mime type to be
381 ; index[application/pdf] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr
'[:cntrl:]' ' '"
382 ; index[application/pdf] = "/usr/bin/pdftotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr
'[:cntrl:]' ' '"
385 ; index[application/postscript] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr
'[:cntrl:]' ' '"
386 ; index[application/postscript] = "/usr/bin/ps2ascii %s | /usr/bin/tr
'[:cntrl:]' ' '"
389 ; index[application/msword] = "/usr/bin/antiword %s
"
390 ; index[application/msword] = "/usr/bin/catdoc %s
"
399 ; Enable OAI front-end to the site
402 ; OAI Repository identifier
403 repository_id = "omp.localhost
"
406 ;;;;;;;;;;;;;;;;;;;;;;
407 ; Interface Settings ;
408 ;;;;;;;;;;;;;;;;;;;;;;
412 ; Number of items to display per page; overridable on a per-press basis
415 ; Number of page links to display; overridable on a per-press basis
425 ; Whether or not to enable ReCaptcha
428 ; Public key for reCaptcha (see http://www.google.com/recaptcha)
429 ; recaptcha_public_key = your_public_key
431 ; Private key for reCaptcha (see http://www.google.com/recaptcha)
432 ; recaptcha_private_key = your_private_key
434 ; Whether or not to use Captcha on user registration
435 captcha_on_register = on
437 ; Validate the hostname in the ReCaptcha response
438 recaptcha_enforce_hostname = Off
440 ;;;;;;;;;;;;;;;;;;;;;
441 ; External Commands ;
442 ;;;;;;;;;;;;;;;;;;;;;
446 ; These are paths to (optional) external binaries used in
447 ; certain plug-ins or advanced program features.
449 ; Using full paths to the binaries is recommended.
451 ; perl (used in paracite citation parser)
454 ; tar (used in backup plugin, translation packaging)
457 ; egrep (used in copyAccessLogFileTool)
460 ; gzip (used in FileManager)
463 ; On systems that do not have PHP4's Sablotron/xsl or PHP5's libxsl/xslt
464 ; libraries installed, or for those who require a specific XSLT processor,
465 ; you may enter the complete path to the XSLT renderer tool, with any
466 ; required arguments. Use %xsl to substitute the location of the XSL
467 ; stylesheet file, and %xml for the location of the XML source file; eg:
468 ; /usr/bin/java -jar ~/java/xalan.jar -IN %xml -XSL %xsl %params
469 ; See xslt_parameter_option below for information on the %params token.
472 ; For providing XSL parameters to the XSL transformer configured in
473 ; xslt_command, the following snippet will be repeated once for each parameter
474 ; to be supplied. %n will be replaced with the parameter name and %v will be
475 ; replaced by the parameter value. The set of options thus constructed will be
476 ; inserted into the xslt_command above in place of the %params token.
477 xslt_parameter_option = "-PARAM %n %v
"
486 ; Note that allow_url_fopen must be set to Off before these proxy settings
489 ; The HTTP proxy configuration to use
490 ; http_host = localhost
492 ; proxy_username = username
493 ; proxy_password = password
502 ; Display a stack trace when a fatal error occurs.
503 ; Note that this may expose private information and should be disabled
504 ; for any production system.
505 show_stacktrace = Off
507 ; Display an error message when something goes wrong.
510 ; Display deprecation warnings
511 deprecation_warnings = Off
513 ; Log web service request information for debugging
514 log_web_service_info = Off
516 ; declare a cainfo path if a certificate other than PHP's default should be used for curl calls.
517 ; This setting overrides the 'curl.cainfo' parameter of the php.ini configuration file.