Open Preprint Systems  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 ; OJS 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 OJS installation (excluding the trailing slash)
32 base_url = "http://localhost/git/ops"
33 
34 ; Session cookie name
35 session_cookie_name = OJSSID
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 ; Site time zone
50 ; Please refer to lib/pkp/registry/timeZones.xml for a full list of supported
51 ; time zones.
52 ; I.e.:
53 ; <entry key="Europe/Amsterdam" name="Amsterdam" />
54 ; time_zone="Amsterdam"
55 time_zone = "UTC"
56 
57 ; Short and long date formats
58 date_format_trunc = "%m-%d"
59 date_format_short = "%Y-%m-%d"
60 date_format_long = "%B %e, %Y"
61 datetime_format_short = "%Y-%m-%d %I:%M %p"
62 datetime_format_long = "%B %e, %Y - %I:%M %p"
63 time_format = "%I:%M %p"
64 
65 ; Use URL parameters instead of CGI PATH_INFO. This is useful for broken server
66 ; setups that don't support the PATH_INFO environment variable.
67 ; WARNING: This option is DEPRECATED and will be removed in the future.
68 disable_path_info = Off
69 
70 ; Use fopen(...) for URL-based reads. Modern versions of dspace
71 ; will not accept requests using fopen, as it does not provide a
72 ; User Agent, so this option is disabled by default. If this feature
73 ; is disabled by PHP's configuration, this setting will be ignored.
74 allow_url_fopen = Off
75 
76 ; Base URL override settings: Entries like the following examples can
77 ; be used to override the base URLs used by OJS. If you want to use a
78 ; proxy to rewrite URLs to OJS, configure your proxy's URL here.
79 ; Syntax: base_url[journal_path] = http://www.myUrl.com
80 ; To override URLs that aren't part of a particular journal, use a
81 ; journal_path of "index".
82 ; Examples:
83 ; base_url[index] = http://www.myUrl.com
84 ; base_url[myJournal] = http://www.myUrl.com/myJournal
85 ; base_url[myOtherJournal] = http://myOtherJournal.myUrl.com
86 
87 ; Generate RESTful URLs using mod_rewrite. This requires the
88 ; rewrite directive to be enabled in your .htaccess or httpd.conf.
89 ; See FAQ for more details.
90 restful_urls = Off
91 
92 ; Allow the X_FORWARDED_FOR header to override the REMOTE_ADDR as the source IP
93 ; Set this to "On" if you are behind a reverse proxy and you control the X_FORWARDED_FOR
94 ; Warning: This defaults to "On" if unset for backwards compatibility.
95 trust_x_forwarded_for = Off
96 
97 ; Allow javascript files to be served through a content delivery network (set to off to use local files)
98 enable_cdn = On
99 
100 ; Set the maximum number of citation checking processes that may run in parallel.
101 ; Too high a value can increase server load and lead to too many parallel outgoing
102 ; requests to citation checking web services. Too low a value can lead to significantly
103 ; slower citation checking performance. A reasonable value is probably between 3
104 ; and 10. The more your connection bandwidth allows the better.
105 citation_checking_max_processes = 3
106 
107 ; Display a message on the site admin and journal manager user home pages if there is an upgrade available
108 show_upgrade_warning = On
109 
110 ; Set the following parameter to off if you want to work with the uncompiled (non-minified) JavaScript
111 ; source for debugging or if you are working off a development branch without compiled JavaScript.
112 enable_minified = Off
113 
114 ; Provide a unique site ID and OAI base URL to PKP for statistics and security
115 ; alert purposes only.
116 enable_beacon = On
117 
118 ; Set this to "On" if you would like to only have a single, site-wide Privacy
119 ; Statement, rather than a separate Privacy Statement for each journal. Setting
120 ; this to "Off" will allow you to enter a site-wide Privacy Statement as well
121 ; as separate Privacy Statements for each journal.
122 sitewide_privacy_statement = Off
123 
124 
125 ;;;;;;;;;;;;;;;;;;;;;
126 ; Database Settings ;
127 ;;;;;;;;;;;;;;;;;;;;;
128 
129 [database]
130 
131 driver = mysqli
132 host = "127.0.0.1"
133 username = ci
134 password = ci
135 name = ops-master
136 ; Set the non-standard port and/or socket, if used
137 ; port = 3306
138 ; unix_socket = /var/run/mysqld/mysqld.sock
139 
140 ; Enable persistent connections
141 persistent = Off
142 
143 ; Enable database debug output (very verbose!)
144 debug = Off
145 
146 ;;;;;;;;;;;;;;;;;;
147 ; Cache Settings ;
148 ;;;;;;;;;;;;;;;;;;
149 
150 [cache]
151 
152 ; Choose the type of object data caching to use. Options are:
153 ; - memcache: Use the memcache server configured below
154 ; - xcache: Use the xcache variable store
155 ; - apc: Use the APC variable store
156 ; - none: Use no caching.
157 object_cache = none
158 
159 ; Enable memcache support
160 memcache_hostname = localhost
161 memcache_port = 11211
162 
163 ; For site visitors who are not logged in, many pages are often entirely
164 ; static (e.g. About, the home page, etc). If the option below is enabled,
165 ; these pages will be cached in local flat files for the number of hours
166 ; specified in the web_cache_hours option. This will cut down on server
167 ; overhead for many requests, but should be used with caution because:
168 ; 1) Things like journal metadata changes will not be reflected in cached
169 ; data until the cache expires or is cleared, and
170 ; 2) This caching WILL NOT RESPECT DOMAIN-BASED SUBSCRIPTIONS.
171 ; However, for situations like hosting high-volume open access journals, it's
172 ; an easy way of decreasing server load.
173 ;
174 ; When using web_cache, configure a tool to periodically clear out cache files
175 ; such as CRON. For example, configure it to run the following command:
176 ; find .../ojs/cache -maxdepth 1 -name wc-\*.html -mtime +1 -exec rm "{}" ";"
177 web_cache = Off
178 web_cache_hours = 1
179 
180 
181 ;;;;;;;;;;;;;;;;;;;;;;;;;
182 ; Localization Settings ;
183 ;;;;;;;;;;;;;;;;;;;;;;;;;
184 
185 [i18n]
186 
187 ; Default locale
188 locale = en_US
189 
190 ; Client output/input character set
191 client_charset = utf-8
192 
193 ; Database connection character set
194 ; Must be set to "Off" if not supported by the database server
195 ; If enabled, must be the same character set as "client_charset"
196 ; (although the actual name may differ slightly depending on the server)
197 connection_charset = utf8
198 
199 
200 ;;;;;;;;;;;;;;;;;
201 ; File Settings ;
202 ;;;;;;;;;;;;;;;;;
203 
204 [files]
205 
206 ; Complete path to directory to store uploaded files
207 ; (This directory should not be directly web-accessible)
208 ; Windows users should use forward slashes
209 files_dir = files
210 
211 ; Path to the directory to store public uploaded files
212 ; (This directory should be web-accessible and the specified path
213 ; should be relative to the base OJS directory)
214 ; Windows users should use forward slashes
215 public_files_dir = public
216 
217 ; The maximum allowed size in bytes of each user's public files
218 ; directory. This is where user's can upload images through the
219 ; tinymce editor to their bio. Editors can upload images for
220 ; some of the settings.
221 ; Set this to 0 to disallow such uploads.
222 public_user_dir_size = 5000
223 
224 ; Permissions mask for created files and directories
225 umask = 0022
226 
227 ; The minimum percentage similarity between filenames that should be considered
228 ; a possible revision
229 filename_revision_match = 70
230 
231 
232 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
233 ; Fileinfo (MIME) Settings ;
234 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
235 
236 [finfo]
237 ; mime_database_path = /etc/magic.mime
238 
239 
240 ;;;;;;;;;;;;;;;;;;;;;
241 ; Security Settings ;
242 ;;;;;;;;;;;;;;;;;;;;;
243 
244 [security]
245 
246 ; Force SSL connections site-wide
247 force_ssl = Off
248 
249 ; Force SSL connections for login only
250 force_login_ssl = Off
251 
252 ; This check will invalidate a session if the user's IP address changes.
253 ; Enabling this option provides some amount of additional security, but may
254 ; cause problems for users behind a proxy farm (e.g., AOL).
255 session_check_ip = On
256 
257 ; The encryption (hashing) algorithm to use for encrypting user passwords
258 ; Valid values are: md5, sha1
259 ; NOTE: This hashing method is deprecated, but necessary to permit gradual
260 ; migration of old password hashes.
261 encryption = sha1
262 
263 ; The unique salt to use for generating password reset hashes
264 salt = "YouMustSetASecretKeyHere!!"
265 
266 ; The unique secret used for encoding and decoding API keys
267 api_key_secret = ""
268 
269 ; The number of seconds before a password reset hash expires (defaults to 7200 / 2 hours)
270 reset_seconds = 7200
271 
272 ; Allowed HTML tags for fields that permit restricted HTML.
273 ; Use e.g. "img[src,alt],p" to allow "src" and "alt" attributes to the "img"
274 ; tag, and also to permit the "p" paragraph tag. Unspecified attributes will be
275 ; stripped.
276 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"
277 
278 ;Is implicit authentication enabled or not
279 
280 ;implicit_auth = On
281 
282 ;Implicit Auth Header Variables
283 
284 ;implicit_auth_header_first_name = HTTP_GIVENNAME
285 ;implicit_auth_header_last_name = HTTP_SN
286 ;implicit_auth_header_email = HTTP_MAIL
287 ;implicit_auth_header_phone = HTTP_TELEPHONENUMBER
288 ;implicit_auth_header_initials = HTTP_METADATA_INITIALS
289 ;implicit_auth_header_mailing_address = HTTP_METADATA_HOMEPOSTALADDRESS
290 ;implicit_auth_header_uin = HTTP_UID
291 
292 ; A space delimited list of uins to make admin
293 ;implicit_auth_admin_list = "jdoe@email.ca jshmo@email.ca"
294 
295 ; URL of the implicit auth 'Way Finder' page. See pages/login/LoginHandler.inc.php for usage.
296 
297 ;implicit_auth_wayf_url = "/Shibboleth.sso/wayf"
298 
299 
300 
301 ;;;;;;;;;;;;;;;;;;
302 ; Email Settings ;
303 ;;;;;;;;;;;;;;;;;;
304 
305 [email]
306 
307 ; Use SMTP for sending mail instead of mail()
308 ; smtp = On
309 
310 ; SMTP server settings
311 ; smtp_server = mail.example.com
312 ; smtp_port = 25
313 
314 ; Enable SMTP authentication
315 ; Supported mechanisms: ssl, tls
316 ; smtp_auth = ssl
317 ; smtp_username = username
318 ; smtp_password = password
319 
320 ; Allow envelope sender to be specified
321 ; (may not be possible with some server configurations)
322 ; allow_envelope_sender = Off
323 
324 ; Default envelope sender to use if none is specified elsewhere
325 ; default_envelope_sender = my_address@my_host.com
326 
327 ; Force the default envelope sender (if present)
328 ; This is useful if setting up a site-wide no-reply address
329 ; The reply-to field will be set with the reply-to or from address.
330 ; force_default_envelope_sender = Off
331 
332 ; Force a DMARC compliant from header (RFC5322.From)
333 ; If any of your users have email addresses in domains not under your control
334 ; you may need to set this to be compliant with DMARC policies published by
335 ; those 3rd party domains.
336 ; Setting this will move the users address into the reply-to field and the
337 ; from field wil be rewritten with the default_envelope_sender.
338 ; To use this you must set force_default_enveloper_sender = On and
339 ; default_envelope_sender must be set to a valid address in a domain you own.
340 ; force_dmarc_compliant_from = Off
341 
342 ; The display name to use with a DMARC compliant from header
343 ; By default the DMARC compliant from will have an empty name but this can
344 ; be changed by adding a text here.
345 ; You can use '%n' to insert the users name from the original from header
346 ; and '%s' to insert the localized sitename.
347 ; dmarc_compliant_from_displayname = '%n via %s'
348 
349 ; Amount of time required between attempts to send non-editorial emails
350 ; in seconds. This can be used to help prevent email relaying via OJS.
351 time_between_emails = 3600
352 
353 ; Maximum number of recipients that can be included in a single email
354 ; (either as To:, Cc:, or Bcc: addresses) for a non-privileged user
355 max_recipients = 10
356 
357 ; If enabled, email addresses must be validated before login is possible.
358 require_validation = Off
359 
360 ; Maximum number of days before an unvalidated account expires and is deleted
361 validation_timeout = 14
362 
363 
364 ;;;;;;;;;;;;;;;;;;;
365 ; Search Settings ;
366 ;;;;;;;;;;;;;;;;;;;
367 
368 [search]
369 
370 ; Minimum indexed word length
371 min_word_length = 3
372 
373 ; The maximum number of search results fetched per keyword. These results
374 ; are fetched and merged to provide results for searches with several keywords.
375 results_per_keyword = 500
376 
377 ; The number of hours for which keyword search results are cached.
378 result_cache_hours = 1
379 
380 ; Paths to helper programs for indexing non-text files.
381 ; Programs are assumed to output the converted text to stdout, and "%s" is
382 ; replaced by the file argument.
383 ; Note that using full paths to the binaries is recommended.
384 ; Uncomment applicable lines to enable (at most one per file type).
385 ; Additional "index[MIME_TYPE]" lines can be added for any mime type to be
386 ; indexed.
387 
388 ; PDF
389 ; index[application/pdf] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
390 ; index[application/pdf] = "/usr/bin/pdftotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
391 
392 ; PostScript
393 ; index[application/postscript] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
394 ; index[application/postscript] = "/usr/bin/ps2ascii %s | /usr/bin/tr '[:cntrl:]' ' '"
395 
396 ; Microsoft Word
397 ; index[application/msword] = "/usr/bin/antiword %s"
398 ; index[application/msword] = "/usr/bin/catdoc %s"
399 
400 
401 ;;;;;;;;;;;;;;;;
402 ; OAI Settings ;
403 ;;;;;;;;;;;;;;;;
404 
405 [oai]
406 
407 ; Enable OAI front-end to the site
408 oai = On
409 
410 ; OAI Repository identifier
411 repository_id = "ops.localhost"
412 
413 ; Maximum number of records per request to serve via OAI
414 oai_max_records = 100
415 
416 ;;;;;;;;;;;;;;;;;;;;;;
417 ; Interface Settings ;
418 ;;;;;;;;;;;;;;;;;;;;;;
419 
420 [interface]
421 
422 ; Number of items to display per page; can be overridden on a per-journal basis
423 items_per_page = 25
424 
425 ; Number of page links to display; can be overridden on a per-journal basis
426 page_links = 10
427 
428 
429 ;;;;;;;;;;;;;;;;;;;;
430 ; Captcha Settings ;
431 ;;;;;;;;;;;;;;;;;;;;
432 
433 [captcha]
434 
435 ; Whether or not to enable ReCaptcha
436 recaptcha = off
437 
438 ; Public key for reCaptcha (see http://www.google.com/recaptcha)
439 recaptcha_public_key = your_public_key
440 
441 ; Private key for reCaptcha (see http://www.google.com/recaptcha)
442 recaptcha_private_key = your_private_key
443 
444 ; Whether or not to use Captcha on user registration
445 captcha_on_register = on
446 
447 ; Validate the hostname in the ReCaptcha response
448 recaptcha_enforce_hostname = Off
449 
450 ;;;;;;;;;;;;;;;;;;;;;
451 ; External Commands ;
452 ;;;;;;;;;;;;;;;;;;;;;
453 
454 [cli]
455 
456 ; These are paths to (optional) external binaries used in
457 ; certain plug-ins or advanced program features.
458 
459 ; Using full paths to the binaries is recommended.
460 
461 ; perl (used in paracite citation parser)
462 perl = /usr/bin/perl
463 
464 ; tar (used in backup plugin, translation packaging)
465 tar = /bin/tar
466 
467 ; On systems that do not have libxsl/xslt libraries installed, or for those who
468 ; require a specific XSLT processor, you may enter the complete path to the
469 ; XSLT renderer tool, with any required arguments. Use %xsl to substitute the
470 ; location of the XSL stylesheet file, and %xml for the location of the XML
471 ; source file; eg:
472 ; /usr/bin/java -jar ~/java/xalan.jar -HTML -IN %xml -XSL %xsl
473 xslt_command = ""
474 
475 ;;;;;;;;;;;;;;;;;;
476 ; Proxy Settings ;
477 ;;;;;;;;;;;;;;;;;;
478 
479 [proxy]
480 
481 ; Note that allow_url_fopen must be set to Off before these proxy settings
482 ; will take effect.
483 
484 ; The HTTP proxy configuration to use
485 ; http_host = localhost
486 ; http_port = 80
487 ; proxy_username = username
488 ; proxy_password = password
489 
490 
491 ;;;;;;;;;;;;;;;;;;
492 ; Debug Settings ;
493 ;;;;;;;;;;;;;;;;;;
494 
495 [debug]
496 
497 ; Display a stack trace when a fatal error occurs.
498 ; Note that this may expose private information and should be disabled
499 ; for any production system.
500 show_stacktrace = Off
501 
502 ; Display an error message when something goes wrong.
503 display_errors = Off
504 
505 ; Display deprecation warnings
506 deprecation_warnings = Off
507 
508 ; Log web service request information for debugging
509 log_web_service_info = Off
510 
511 ; declare a cainfo path if a certificate other than PHP's default should be used for curl calls.
512 ; This setting overrides the 'curl.cainfo' parameter of the php.ini configuration file.
513 [curl]
514 ; cainfo = ""
515 
PKP
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
OAI
Class to process and respond to OAI requests.
Definition: OAI.inc.php:27