Open Monograph Press  3.3.0
config.inc.php
1 ; <?php exit(); // DO NOT DELETE ?>
2 ; DO NOT DELETE THE ABOVE LINE!!!
3 ; Doing so will expose this configuration file through your web site!
4 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
5 
6 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
7 ;
8 ; config.TEMPLATE.inc.php
9 ;
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.
13 ;
14 ; OMP Configuration settings.
15 ; Rename config.TEMPLATE.inc.php to config.inc.php to use.
16 ;
17 ;
18 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
19 
20 
21 ;;;;;;;;;;;;;;;;;;;;
22 ; General Settings ;
23 ;;;;;;;;;;;;;;;;;;;;
24 
25 [general]
26 
27 ; Set this to On once the system has been installed
28 ; (This is generally done automatically by the installer)
29 installed = On
30 
31 ; The canonical URL to the OMP installation (excluding the trailing slash)
32 base_url = "http://localhost/git/omp"
33 
34 ; Session cookie name
35 session_cookie_name = OMPSID
36 
37 ; Session cookie path; if not specified, defaults to the detected base path
38 ; session_cookie_path = /
39 
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)
42 session_lifetime = 30
43 
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
47 scheduled_tasks = Off
48 
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
54 
55 ; Site time zone
56 ; Please refer to lib/pkp/registry/timeZones.xml for a full list of supported
57 ; time zones.
58 ; I.e.:
59 ; <entry key="Europe/Amsterdam" name="Amsterdam" />
60 ; time_zone="Amsterdam"
61 time_zone = "UTC"
62 
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"
70 
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
75 
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.
80 allow_url_fopen = Off
81 
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".
88 ; Examples:
89 ; base_url[index] = http://www.myUrl.com
90 ; base_url[myPress] = http://www.myUrl.com/myPress
91 ; base_url[myOtherPress] = http://myOtherPress.myUrl.com
92 
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.
96 restful_urls = Off
97 
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
103 
104 ; Allow javascript files to be served through a content delivery network (set to
105 ; off to use local files)
106 enable_cdn = On
107 
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
112 
113 ; Provide a unique site ID and OAI base URL to PKP for statistics and security
114 ; alert purposes only.
115 enable_beacon = On
116 
117 
118 ;;;;;;;;;;;;;;;;;;;;;
119 ; Database Settings ;
120 ;;;;;;;;;;;;;;;;;;;;;
121 
122 [database]
123 
124 driver = mysqli
125 host = "127.0.0.1"
126 username = ci
127 password = ci
128 name = omp-master
129 ; Set the non-standard port and/or socket, if used
130 ; port = 3306
131 ; unix_socket = /var/run/mysqld/mysqld.sock
132 
133 
134 ; Enable persistent connections (recommended)
135 persistent = Off
136 
137 ; Enable database debug output (very verbose!)
138 debug = Off
139 
140 ;;;;;;;;;;;;;;;;;;
141 ; Cache Settings ;
142 ;;;;;;;;;;;;;;;;;;
143 
144 [cache]
145 
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.
151 
152 cache = file
153 
154 ; Enable memcache support
155 memcache_hostname = localhost
156 memcache_port = 11211
157 
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.
168 ;
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 "{}" ";"
172 web_cache = Off
173 web_cache_hours = 1
174 
175 
176 ;;;;;;;;;;;;;;;;;;;;;;;;;
177 ; Localization Settings ;
178 ;;;;;;;;;;;;;;;;;;;;;;;;;
179 
180 [i18n]
181 
182 ; Default locale
183 locale = en_US
184 
185 ; Client output/input character set
186 client_charset = utf-8
187 
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
193 
194 
195 ;;;;;;;;;;;;;;;;;
196 ; File Settings ;
197 ;;;;;;;;;;;;;;;;;
198 
199 [files]
200 
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
204 files_dir = files
205 
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
211 
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
218 
219 ; Permissions mask for created files and directories
220 umask = 0022
221 
222 ; The minimum percentage similarity between filenames that should be considered
223 ; a possible revision
224 filename_revision_match = 70
225 
226 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
227 ; Fileinfo (MIME) Settings ;
228 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
229 
230 [finfo]
231 ; mime_database_path = /etc/magic.mime
232 
233 
234 ;;;;;;;;;;;;;;;;;;;;;
235 ; Security Settings ;
236 ;;;;;;;;;;;;;;;;;;;;;
237 
238 [security]
239 
240 ; Force SSL connections site-wide
241 force_ssl = Off
242 
243 ; Force SSL connections for login only
244 force_login_ssl = Off
245 
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
250 
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.
255 encryption = sha1
256 
257 ; The unique salt to use for generating password reset hashes
258 salt = "YouMustSetASecretKeyHere!!"
259 
260 ; The number of seconds before a password reset hash expires (defaults to
261 ; 7200 seconds (2 hours)
262 reset_seconds = 7200
263 
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
267 ; stripped.
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"
269 
270 ;Is implicit authentication enabled or not
271 
272 ;implicit_auth = On
273 
274 ;Implicit Auth Header Variables
275 
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
283 
284 ; A space delimited list of uins to make admin
285 ;implicit_auth_admin_list = "100000040@tdl.org 85B7FA892DAA90F7@utexas.edu 100000012@tdl.org"
286 
287 ; URL of the implicit auth 'Way Finder' page. See pages/login/LoginHandler.inc.php for usage.
288 
289 ;implicit_auth_wayf_url = "/Shibboleth.sso/wayf"
290 
291 
292 
293 ;;;;;;;;;;;;;;;;;;
294 ; Email Settings ;
295 ;;;;;;;;;;;;;;;;;;
296 
297 [email]
298 
299 ; Use SMTP for sending mail instead of mail()
300 ; smtp = On
301 
302 ; SMTP server settings
303 ; smtp_server = mail.example.com
304 ; smtp_port = 25
305 
306 ; Enable SMTP authentication
307 ; Supported mechanisms: ssl, tls
308 ; smtp_auth = ssl
309 ; smtp_username = username
310 ; smtp_password = password
311 
312 ; Allow envelope sender to be specified
313 ; (may not be possible with some server configurations)
314 ; allow_envelope_sender = Off
315 
316 ; Default envelope sender to use if none is specified elsewhere
317 ; default_envelope_sender = my_address@my_host.com
318 
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
323 
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
333 
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'
340 
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
344 
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
347 max_recipients = 10
348 
349 ; If enabled, email addresses must be validated before login is possible.
350 require_validation = Off
351 
352 ; Maximum number of days before an unvalidated account expires and is deleted
353 validation_timeout = 14
354 
355 
356 ;;;;;;;;;;;;;;;;;;;
357 ; Search Settings ;
358 ;;;;;;;;;;;;;;;;;;;
359 
360 [search]
361 
362 ; Minimum indexed word length
363 min_word_length = 3
364 
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
368 
369 ; The number of hours for which keyword search results are cached.
370 result_cache_hours = 1
371 
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
378 ; indexed.
379 
380 ; PDF
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:]' ' '"
383 
384 ; PostScript
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:]' ' '"
387 
388 ; Microsoft Word
389 ; index[application/msword] = "/usr/bin/antiword %s"
390 ; index[application/msword] = "/usr/bin/catdoc %s"
391 
392 
393 ;;;;;;;;;;;;;;;;
394 ; OAI Settings ;
395 ;;;;;;;;;;;;;;;;
396 
397 [oai]
398 
399 ; Enable OAI front-end to the site
400 oai = On
401 
402 ; OAI Repository identifier
403 repository_id = "omp.localhost"
404 
405 
406 ;;;;;;;;;;;;;;;;;;;;;;
407 ; Interface Settings ;
408 ;;;;;;;;;;;;;;;;;;;;;;
409 
410 [interface]
411 
412 ; Number of items to display per page; overridable on a per-press basis
413 items_per_page = 50
414 
415 ; Number of page links to display; overridable on a per-press basis
416 page_links = 10
417 
418 
419 ;;;;;;;;;;;;;;;;;;;;
420 ; Captcha Settings ;
421 ;;;;;;;;;;;;;;;;;;;;
422 
423 [captcha]
424 
425 ; Whether or not to enable ReCaptcha
426 recaptcha = off
427 
428 ; Public key for reCaptcha (see http://www.google.com/recaptcha)
429 ; recaptcha_public_key = your_public_key
430 
431 ; Private key for reCaptcha (see http://www.google.com/recaptcha)
432 ; recaptcha_private_key = your_private_key
433 
434 ; Whether or not to use Captcha on user registration
435 captcha_on_register = on
436 
437 ; Validate the hostname in the ReCaptcha response
438 recaptcha_enforce_hostname = Off
439 
440 ;;;;;;;;;;;;;;;;;;;;;
441 ; External Commands ;
442 ;;;;;;;;;;;;;;;;;;;;;
443 
444 [cli]
445 
446 ; These are paths to (optional) external binaries used in
447 ; certain plug-ins or advanced program features.
448 
449 ; Using full paths to the binaries is recommended.
450 
451 ; perl (used in paracite citation parser)
452 perl = /usr/bin/perl
453 
454 ; tar (used in backup plugin, translation packaging)
455 tar = /bin/tar
456 
457 ; egrep (used in copyAccessLogFileTool)
458 egrep = /bin/egrep
459 
460 ; gzip (used in FileManager)
461 gzip = /bin/gzip
462 
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.
470 xslt_command = ""
471 
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 "
478 
479 
480 ;;;;;;;;;;;;;;;;;;
481 ; Proxy Settings ;
482 ;;;;;;;;;;;;;;;;;;
483 
484 [proxy]
485 
486 ; Note that allow_url_fopen must be set to Off before these proxy settings
487 ; will take effect.
488 
489 ; The HTTP proxy configuration to use
490 ; http_host = localhost
491 ; http_port = 80
492 ; proxy_username = username
493 ; proxy_password = password
494 
495 
496 ;;;;;;;;;;;;;;;;;;
497 ; Debug Settings ;
498 ;;;;;;;;;;;;;;;;;;
499 
500 [debug]
501 
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
506 
507 ; Display an error message when something goes wrong.
508 display_errors = Off
509 
510 ; Display deprecation warnings
511 deprecation_warnings = Off
512 
513 ; Log web service request information for debugging
514 log_web_service_info = Off
515 
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.
518 [curl]
519 ; cainfo = ""
PKP
GuzzleHttp\Promise\all
all($promises)
Definition: guzzlehttp/promises/src/functions.php:219
Session
Maintains user state information from one request to the next.
Definition: Session.inc.php:22
Site
Describes system-wide site properties.
Definition: Site.inc.php:23
Symfony\Polyfill\Php72
Definition: Php72.php:12
OAI
Class to process and respond to OAI requests.
Definition: OAI.inc.php:27