From 924223e52d765413e1ff93ba533de1cfa8e32045 Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Fri, 30 Aug 2024 15:55:24 -0300 Subject: [PATCH 1/4] pkp/pkp-lib#8543 sync config templates across applications --- config.TEMPLATE.inc.php | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/config.TEMPLATE.inc.php b/config.TEMPLATE.inc.php index e64400d380..5a6ba926fa 100644 --- a/config.TEMPLATE.inc.php +++ b/config.TEMPLATE.inc.php @@ -7,8 +7,8 @@ ; ; config.TEMPLATE.inc.php ; -; Copyright (c) 2014-2021 Simon Fraser University -; Copyright (c) 2003-2021 John Willinsky +; Copyright (c) 2014-2024 Simon Fraser University +; Copyright (c) 2003-2024 John Willinsky ; Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. ; ; OJS Configuration settings. @@ -51,6 +51,12 @@ ; execute periodically scheduled_tasks = Off +; Scheduled tasks will send email about processing +; only in case of errors. Set to off to receive +; all other kind of notification, including success, +; warnings and notices. +scheduled_tasks_report_error_only = On + ; Site time zone ; Please refer to lib/pkp/registry/timeZones.xml for a full list of supported ; time zones. @@ -101,17 +107,11 @@ allowed_hosts = '' ; Allow the X_FORWARDED_FOR header to override the REMOTE_ADDR as the source IP -; Set this to "On" if you are behind a reverse proxy and you control the X_FORWARDED_FOR +; Set this to "On" if you are behind a reverse proxy and you control the +; X_FORWARDED_FOR header. ; Warning: This defaults to "On" if unset for backwards compatibility. trust_x_forwarded_for = Off -; Set the maximum number of citation checking processes that may run in parallel. -; Too high a value can increase server load and lead to too many parallel outgoing -; requests to citation checking web services. Too low a value can lead to significantly -; slower citation checking performance. A reasonable value is probably between 3 -; and 10. The more your connection bandwidth allows the better. -citation_checking_max_processes = 3 - ; Display a message on the site admin and journal manager user home pages if there is an upgrade available show_upgrade_warning = On @@ -304,7 +304,6 @@ ;implicit_auth_wayf_url = "/Shibboleth.sso/wayf" - ;;;;;;;;;;;;;;;;;; ; Email Settings ; ;;;;;;;;;;;;;;;;;; @@ -336,6 +335,10 @@ ; smtp_oauth_clientsecret = ; smtp_oauth_refreshtoken = +; Enable suppressing verification of SMTP certificate in PHPMailer +; Note: this is not recommended per PHPMailer documentation +; smtp_suppress_cert_check = On + ; Allow envelope sender to be specified ; (may not be possible with some server configurations) ; allow_envelope_sender = Off @@ -393,9 +396,6 @@ ; are fetched and merged to provide results for searches with several keywords. results_per_keyword = 500 -; The number of hours for which keyword search results are cached. -result_cache_hours = 1 - ; Paths to helper programs for indexing non-text files. ; Programs are assumed to output the converted text to stdout, and "%s" is ; replaced by the file argument. @@ -433,6 +433,7 @@ ; Maximum number of records per request to serve via OAI oai_max_records = 100 + ;;;;;;;;;;;;;;;;;;;;;; ; Interface Settings ; ;;;;;;;;;;;;;;;;;;;;;; @@ -478,9 +479,6 @@ ; Using full paths to the binaries is recommended. -; perl (used in paracite citation parser) -perl = /usr/bin/perl - ; tar (used in backup plugin, translation packaging) tar = /bin/tar @@ -492,6 +490,7 @@ ; /usr/bin/java -jar ~/java/xalan.jar -HTML -IN %xml -XSL %xsl xslt_command = "" + ;;;;;;;;;;;;;;;;;; ; Proxy Settings ; ;;;;;;;;;;;;;;;;;; From 71c5173003772148cf2d1fccc1491c7fcc45eac1 Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Fri, 30 Aug 2024 19:26:49 -0300 Subject: [PATCH 2/4] pkp/pkp-lib#8543 remove unused config values --- config.TEMPLATE.inc.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/config.TEMPLATE.inc.php b/config.TEMPLATE.inc.php index 5a6ba926fa..1a759c879e 100644 --- a/config.TEMPLATE.inc.php +++ b/config.TEMPLATE.inc.php @@ -230,10 +230,6 @@ ; Permissions mask for created files and directories umask = 0022 -; The minimum percentage similarity between filenames that should be considered -; a possible revision -filename_revision_match = 70 - ;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Fileinfo (MIME) Settings ; @@ -521,8 +517,3 @@ ; Log web service request information for debugging log_web_service_info = Off - -; declare a cainfo path if a certificate other than PHP's default should be used for curl calls. -; This setting overrides the 'curl.cainfo' parameter of the php.ini configuration file. -[curl] -; cainfo = "" From 28d18912353445c69c8978dfc656ff6324683e80 Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Wed, 25 Sep 2024 15:37:17 -0300 Subject: [PATCH 3/4] pkp/pkp-lib#8543 improve session_check_ip and validation_timeout descriptions --- config.TEMPLATE.inc.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/config.TEMPLATE.inc.php b/config.TEMPLATE.inc.php index 1a759c879e..9d747d7e2e 100644 --- a/config.TEMPLATE.inc.php +++ b/config.TEMPLATE.inc.php @@ -94,7 +94,7 @@ ; base_url[myJournal] = http://www.myUrl.com/myJournal ; base_url[myOtherJournal] = http://myOtherJournal.myUrl.com -; Generate RESTful URLs using mod_rewrite. This requires the +; Generate RESTful URLs using mod_rewrite. This requires the ; rewrite directive to be enabled in your .htaccess or httpd.conf. ; See FAQ for more details. restful_urls = Off @@ -253,8 +253,9 @@ force_login_ssl = Off ; This check will invalidate a session if the user's IP address changes. -; Enabling this option provides some amount of additional security, but may -; cause problems for users behind a proxy farm (e.g., AOL). +; Enabling this option provides some additional security, but may cause +; login problems for some users (e.g. if a user IP is changed frequently +; by a server or network configuration). session_check_ip = On ; The encryption (hashing) algorithm to use for encrypting user passwords @@ -279,11 +280,9 @@ 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" ;Is implicit authentication enabled or not - ;implicit_auth = On ;Implicit Auth Header Variables - ;implicit_auth_header_first_name = HTTP_GIVENNAME ;implicit_auth_header_last_name = HTTP_SN ;implicit_auth_header_email = HTTP_MAIL @@ -295,8 +294,7 @@ ; A space delimited list of uins to make admin ;implicit_auth_admin_list = "jdoe@email.ca jshmo@email.ca" -; URL of the implicit auth 'Way Finder' page. See pages/login/LoginHandler.inc.php for usage. - +; URL of the implicit auth 'Way Finder' page. See lib/pkp/pages/login/LoginHandler.inc.php for usage. ;implicit_auth_wayf_url = "/Shibboleth.sso/wayf" @@ -375,7 +373,7 @@ ; If enabled, email addresses must be validated before login is possible. require_validation = Off -; Maximum number of days before an unvalidated account expires and is deleted +; The number of days a user has to validate their account before their access key expires. validation_timeout = 14 From c11f7718c7b88be292191768ceb86988b1e2076e Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Thu, 26 Sep 2024 11:14:38 -0300 Subject: [PATCH 4/4] pkp/pkp-lib#8543 remove unused implicit_auth shibboleth settings --- config.TEMPLATE.inc.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/config.TEMPLATE.inc.php b/config.TEMPLATE.inc.php index 9d747d7e2e..c4199b732f 100644 --- a/config.TEMPLATE.inc.php +++ b/config.TEMPLATE.inc.php @@ -282,21 +282,6 @@ ;Is implicit authentication enabled or not ;implicit_auth = On -;Implicit Auth Header Variables -;implicit_auth_header_first_name = HTTP_GIVENNAME -;implicit_auth_header_last_name = HTTP_SN -;implicit_auth_header_email = HTTP_MAIL -;implicit_auth_header_phone = HTTP_TELEPHONENUMBER -;implicit_auth_header_initials = HTTP_METADATA_INITIALS -;implicit_auth_header_mailing_address = HTTP_METADATA_HOMEPOSTALADDRESS -;implicit_auth_header_uin = HTTP_UID - -; A space delimited list of uins to make admin -;implicit_auth_admin_list = "jdoe@email.ca jshmo@email.ca" - -; URL of the implicit auth 'Way Finder' page. See lib/pkp/pages/login/LoginHandler.inc.php for usage. -;implicit_auth_wayf_url = "/Shibboleth.sso/wayf" - ;;;;;;;;;;;;;;;;;; ; Email Settings ;