From 567c96c330412b6ff7f5f36cc55d34e6a0120c2b Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Fri, 30 Aug 2024 15:25:19 -0300 Subject: [PATCH 1/4] pkp/pkp-lib#8543 sync config templates across applications --- config.TEMPLATE.inc.php | 66 ++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/config.TEMPLATE.inc.php b/config.TEMPLATE.inc.php index 6c7d27fc728..53584e172d3 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. ; ; OMP Configuration settings. @@ -103,7 +103,7 @@ ; See docs/README.md for more details. The list should be JSON-formatted. ; An empty string indicates that all hosts should be trusted (not recommended!) ; Example: -; allowed_hosts = '["myjournal.tld", "anotherjournal.tld", "mylibrary.tld"]' +; allowed_hosts = '["mypress.tld", "anotherpress.tld", "mylibrary.tld"]' allowed_hosts = '' ; Allow the X_FORWARDED_FOR header to override the REMOTE_ADDR as the source IP @@ -112,15 +112,23 @@ ; Warning: This defaults to "On" if unset for backwards compatibility. trust_x_forwarded_for = Off -; Set the following parameter to off if you want to work with the uncompiled -; (non-minified) JavaScript source for debugging or if you are working off a -; development branch without compiled JavaScript. +; Display a message on the site admin and press manager user home pages if there is an upgrade available +show_upgrade_warning = On + +; Set the following parameter to off if you want to work with the uncompiled (non-minified) JavaScript +; source for debugging or if you are working off a development branch without compiled JavaScript. enable_minified = On ; Provide a unique site ID and OAI base URL to PKP for statistics and security ; alert purposes only. enable_beacon = On +; Set this to "On" if you would like to only have a single, site-wide Privacy +; Statement, rather than a separate Privacy Statement for each press. Setting +; this to "Off" will allow you to enter a site-wide Privacy Statement as well +; as separate Privacy Statements for each press. +sitewide_privacy_statement = Off + ;;;;;;;;;;;;;;;;;;;;; ; Database Settings ; @@ -155,7 +163,6 @@ ; - file: Use file-based caching; configured below ; - none: Use no caching. This may be extremely slow. ; This setting affects locale data, press settings, and plugin settings. - cache = file ; Enable memcache support @@ -281,23 +288,22 @@ ;Implicit Auth Header Variables -;implicit_auth_header_first_name = HTTP_TDL_GIVENNAME -;implicit_auth_header_last_name = HTTP_TDL_SN -;implicit_auth_header_email = HTTP_TDL_MAIL -;implicit_auth_header_phone = HTTP_TDL_TELEPHONENUMBER -;implicit_auth_header_initials = HTTP_TDL_METADATA_INITIALS -;implicit_auth_header_mailing_address = HTTP_TDL_METADATA_TDLHOMEPOSTALADDRESS -;implicit_auth_header_uin = HTTP_TDL_TDLUID +;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 = "100000040@tdl.org 85B7FA892DAA90F7@utexas.edu 100000012@tdl.org" +;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. ;implicit_auth_wayf_url = "/Shibboleth.sso/wayf" - ;;;;;;;;;;;;;;;;;; ; Email Settings ; ;;;;;;;;;;;;;;;;;; @@ -390,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. @@ -427,6 +430,9 @@ ; Changing this setting may affect existing clients and is not recommended. repository_id = omp.pkp.sfu.ca +; Maximum number of records per request to serve via OAI +oai_max_records = 100 + ;;;;;;;;;;;;;;;;;;;;;; ; Interface Settings ; @@ -435,7 +441,7 @@ [interface] ; Number of items to display per page; can be overridden on a per-press basis -items_per_page = 50 +items_per_page = 25 ; Number of page links to display; can be overridden on a per-press basis page_links = 10 @@ -451,10 +457,10 @@ recaptcha = off ; Public key for reCaptcha (see http://www.google.com/recaptcha) -; recaptcha_public_key = your_public_key +recaptcha_public_key = your_public_key ; Private key for reCaptcha (see http://www.google.com/recaptcha) -; recaptcha_private_key = your_private_key +recaptcha_private_key = your_private_key ; Whether or not to use Captcha on user registration captcha_on_register = on @@ -476,17 +482,11 @@ ; tar (used in backup plugin, translation packaging) tar = /bin/tar -; egrep (used in copyAccessLogFileTool) -egrep = /bin/egrep - -; gzip (used in FileManager) -gzip = /bin/gzip - -; On systems that do not have PHP4's Sablotron/xsl or PHP5's libxsl/xslt -; libraries installed, or for those who require a specific XSLT processor, -; you may enter the complete path to the XSLT renderer tool, with any -; required arguments. Use %xsl to substitute the location of the XSL -; stylesheet file, and %xml for the location of the XML source file; eg: +; On systems that do not have libxsl/xslt libraries installed, or for those who +; require a specific XSLT processor, you may enter the complete path to the +; XSLT renderer tool, with any required arguments. Use %xsl to substitute the +; location of the XSL stylesheet file, and %xml for the location of the XML +; source file; eg: ; /usr/bin/java -jar ~/java/xalan.jar -IN %xml -XSL %xsl %params ; See xslt_parameter_option below for information on the %params token. xslt_command = "" From eaef1a600d89ff645862bb28c9e765911aa802f3 Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Fri, 30 Aug 2024 19:26:16 -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 53584e172d3..151592259cd 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 ; @@ -529,8 +525,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 35df77fb3b463d190d8dbfd92c68f8484e8cb87f Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Wed, 25 Sep 2024 15:35:44 -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 151592259cd..bf00869aabf 100644 --- a/config.TEMPLATE.inc.php +++ b/config.TEMPLATE.inc.php @@ -94,7 +94,7 @@ ; base_url[myPress] = http://www.myUrl.com/myPress ; base_url[myOtherPress] = http://myOtherPress.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 = Off ; 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 7aed318a7858845c40982a77ebb16ea9b4a5705f Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Thu, 26 Sep 2024 11:16:04 -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 bf00869aabf..e735714947d 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 ;