diff --git a/code/web/release_notes/24.11.00.MD b/code/web/release_notes/24.11.00.MD index e96c8e882d..ab751051de 100644 --- a/code/web/release_notes/24.11.00.MD +++ b/code/web/release_notes/24.11.00.MD @@ -47,6 +47,8 @@ //kirstien - bywater //kodi - bywater +### Other Updates +- Remove partner-specific directories in the /sites directory (*KL*) //morgan - bywater diff --git a/sites/arlington.production/arlington.production.sh b/sites/arlington.production/arlington.production.sh deleted file mode 100755 index a8aec5c117..0000000000 --- a/sites/arlington.production/arlington.production.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -if [ -z "$1" ] - then - echo "To use, run with start, stop or restart for the first parameter." -fi - -if [[ ( "$1" == "stop" ) || ( "$1" == "restart") ]] - then - /usr/local/aspen-discovery/sites/default/solr-8.11.2/bin/solr stop -p 8080 -s "/data/aspen-discovery/arlington.production/solr7" -d "/usr/local/aspen-discovery/sites/default/solr-8.11.2/server" -fi - -if [[ ( "$1" == "start" ) || ( "$1" == "restart") ]] - then - /usr/local/aspen-discovery/sites/default/solr-8.11.2/bin/solr start -m 3g -p 8080 -s "/data/aspen-discovery/arlington.production/solr7" -d "/usr/local/aspen-discovery/sites/default/solr-8.11.2/server" -fi diff --git a/sites/arlington.production/conf/config.cron.ini b/sites/arlington.production/conf/config.cron.ini deleted file mode 100644 index 931c8d9242..0000000000 --- a/sites/arlington.production/conf/config.cron.ini +++ /dev/null @@ -1,35 +0,0 @@ -# Configures the processes that cron will run when it is invoked with -# additional information about the frequency that it is invoked. -# The ini file should have a Processes section with the name of each process to run -# -# Processes should have the format: -# - Process Name = Process Handler Class -# -# Each process will also have a section based on the Process Name. -# the section should contain the following keys at a minimum -# - description = A brief description of what the process does -# - lastRun = the timestamp the process was last run. Blank if the process has never been run. -# - frequencyHours = the frequency with which the process should be run in hours or 0 if it should be run each time cron runs. -# -# General settings can also be defined that will be sent to all processes. -# these can include database connection information, solr settings, etc. - -[Processes] -UpdateReadingHistory = com.turning_leaf_technologies.cron.reading_history.UpdateReadingHistory -BookCoverCleanup = com.turning_leaf_technologies.cron.BookCoverCleanup -DatabaseCleanup = com.turning_leaf_technologies.cron.DatabaseCleanup - -[UpdateReadingHistory] -description = Updates reading History for the patron based on what is currently checked out. -frequencyHours = 0 - -[BookCoverCleanup] -description = Cleans up any book covers that are out of date (more than 2 weeks old). -frequencyHours = 0 - -[DatabaseCleanup] -description = Does cleanup of the database to remove records that are no longer needed -frequencyHours = 0 - - - diff --git a/sites/arlington.production/conf/config.ini b/sites/arlington.production/conf/config.ini deleted file mode 100644 index 184ac502a4..0000000000 --- a/sites/arlington.production/conf/config.ini +++ /dev/null @@ -1,40 +0,0 @@ -; -; default config file for customization -; Aspen Discovery Configuration -; - -; No changes are necessary in the System Section -[System] -debug = false -timings = false -debugJs = true -operatingSystem = linux - -; This section will need to be customized for your installation -[Site] -local = /usr/local/aspen-discovery/code/web -coverPath = /data/aspen-discovery/arlington.production/covers -url = https://libcat.arlingtonva.us -title = "Arlington Public Library" -libraryName = Arlington Public Library -; Find valid timezone values here: -; http://www.php.net/manual/en/timezones.php -timezone = "America/New_York" - -[Catalog] -ils = Koha -driver = Koha -showFines = true -url = https://arlingtonva.bywatersolutions.com -linking_url = https://arlingtonva.bywatersolutions.com -staffClientUrl = -api_version = 5 - -; This section requires no changes for most installations -[Index] -url = http://localhost:8080/solr - -[Reindex] -solrPort = 8080 -marcPath = /data/aspen-discovery/arlington.production/ils/marc -lexileExportPath = diff --git a/sites/arlington.production/conf/crontab_settings.txt b/sites/arlington.production/conf/crontab_settings.txt deleted file mode 100644 index 5b6c0fd101..0000000000 --- a/sites/arlington.production/conf/crontab_settings.txt +++ /dev/null @@ -1,101 +0,0 @@ -################## -## Crontab setting from a 'configuration' file -## -## to save current crontab to file: crontab -l > crontab_settings.txt -## -## to set the current crontab from a file : crontab < crontab_settings.txt -## -################## - -# !! Please make all changes to the crontab within the git repository system and apply through the above method. -# -# ie : -# git pull origin {current branch} -# sudo /usr/local/aspen-discovery/code/cron/check_crontab.sh arlington.production -# sudo crontab < /usr/local/aspen-discovery/sites/arlington.production/conf/crontab_settings.txt - -################### -# * * * * * command to execute -# │ │ │ │ │ -# │ │ │ │ └───── day of week (0 - 6) -# │ │ │ │ (0 to 6 are Sunday to Saturday, or use names (Sun,Mon,Tue,Wed,Thu,Fri,Sat); 7 is Sunday, the same as 0) -# │ │ │ └────────── month (1 - 12) -# │ │ └─────────────── day of month (1 - 31) -# │ └──────────────────── hour (0 - 23) -# └───────────────────────── min (0 - 59) -## taken from https://en.wikipedia.org/wiki/Cron -############## - -############# -# Indexing Tasks # -############# -@reboot solr php /usr/local/aspen-discovery/code/web/cron/checkSolr.php arlington.production -5 2 * * * solr php /usr/local/aspen-discovery/code/web/cron/updateSuggesters.php arlington.production -7 3 * * * aspen php /usr/local/aspen-discovery/code/web/cron/createSitemaps.php arlington.production -*/2 * * * * solr php /usr/local/aspen-discovery/code/web/cron/checkSolr.php arlington.production -*/5 * * * * aspen php /usr/local/aspen-discovery/code/web/cron/checkBackgroundProcesses.php arlington.production - -######################################################## -# Regular extracts that don't need to run continuously # -######################################################## -# 0 2 * * * aspen cd /usr/local/aspen-discovery/code/oai_indexer; java -jar oai_indexer.jar arlington.production -0 2 * * * aspen cd /usr/local/aspen-discovery/code/reindexer; java -jar reindexer.jar arlington.production nightly - -###################### -# MySQL Nightly Dump # -###################### -# backup important bits at 12:10am daily -10 0 * * * root php /usr/local/aspen-discovery/code/web/cron/backupAspen.php arlington.production - -############################################# -# New York Times Best seller Lists Updating # -############################################# -15 7 * * 0-1 aspen php /usr/local/aspen-discovery/code/web/cron/updateNYTLists.php arlington.production -# update on Sundays and Mondays at 7:15 - -########################### -# Aspen Discovery Cleanup # -########################### - -# Temp files -26 0 * * * root cd /tmp; rm -rf CURLCOOKIE* - -# CRON for Aspen (book cover cache cleanup etc.) -00 22 * * * aspen cd /usr/local/aspen-discovery/code/cron; java -jar cron.jar arlington.production - -00 01 * * * root certbot renew - -######################### -# Update Saved Searches # -######################### -0 10 * * 1-5 aspen php /usr/local/aspen-discovery/code/web/cron/updateSavedSearches.php arlington.production - -######################### -# Fetch Notification Receipts # -######################### -0 11 * * 1-5 aspen php /usr/local/aspen-discovery/code/web/cron/fetchNotificationReceipts.php arlington.production - -############################# -# Refresh SAML SSO metadata # -############################# -00 05 * * * aspen php /usr/local/aspen-discovery/code/web/cron/refreshSsoMetadata.php arlington.production - -######################### -# Send Custom LiDA Notifications # -######################### -*/15 * * * * aspen php /usr/local/aspen-discovery/code/web/cron/sendLiDANotifications.php arlington.production - -######################### -# Run Scheduled Updates # -######################### -*/5 * * * * root php /usr/local/aspen-discovery/code/web/cron/runScheduledUpdate.php arlington.production - -######################### -# Update Translations from Community # -######################### -15 1 * * * root php /usr/local/aspen-discovery/code/web/cron/updateCommunityTranslations.php arlington.production - -###################################### -# Run Clam AV Scans # -###################################### -00 3 * * * root truncate -s0 /var/log/aspen-discovery/clam_av.log; /bin/clamscan --recursive=yes --quiet -i --exclude-dir=/var/lib/mysql --exclude-dir=/sys --exclude-dir=/data/aspen-discovery/arlington.production/solr7/ --exclude-dir=/var/log/aspen-discovery/arlington.production --exclude-dir=/data/aspen-discovery/arlington.production/covers/small --exclude-dir=/data/aspen-discovery/arlington.production/covers/medium --exclude-dir=/data/aspen-discovery/arlington.production/covers/large --log=/var/log/aspen-discovery/clam_av.log diff --git a/sites/arlington.production/httpd-arlington.production-le-ssl.conf b/sites/arlington.production/httpd-arlington.production-le-ssl.conf deleted file mode 100644 index 1d69166694..0000000000 --- a/sites/arlington.production/httpd-arlington.production-le-ssl.conf +++ /dev/null @@ -1,185 +0,0 @@ - - - ServerName libcat2.arlingtonva.us - DocumentRoot "/usr/local/aspen-discovery/code/web" - CustomLog /var/log/aspen-discovery/arlington.production/access.log combined - ErrorLog /var/log/aspen-discovery/arlington.production/error.log - ErrorDocument 404 /Error/Handle404 - - - Require all granted - Options -Indexes -MultiViews - AllowOverride All - - SetEnv aspen_server arlington.production - - # Friendly URLs - - RewriteEngine On - - # Bot Blocking - Include /usr/local/aspen-discovery/sites/arlington.production/conf/badBotsLocal.conf - Include /usr/local/aspen-discovery/sites/default/conf/badBotsDefault.conf - - RewriteRule ^robots\.txt$ /robots.php [NC,L] - RewriteRule ^sitemapindex\.xml$ /sitemapindex.php [NC,L] - RewriteRule ^grouped_work_site_map(.+)$ /sitemaps/grouped_work_site_map$1 [NC,L] - - # Anything that is a direct php file still goes to that - RewriteRule ^(.*?\.php).*$ $1 [NC,L] - - # Rewrite everything else to go through index.php - RewriteRule ^(.*)$ index.php [NC,L] - - - # Disable Magic Quotes - php_value magic_quotes_gpc false - - # Session Settings - php_value session.use_cookies 1 - php_value session.use_only_cookies 1 - # important: we want to serialize objects - php_value session.auto_start 0 - #php_value session.cookie_secure 1 - # we should check session lifetime in "read" methods - # since PHP cookies do not "refresh" them during activity - # hence we leave them alive until browser closes - php_value session.cookie_lifetime 0 - php_value session.gc_maxlifetime 6000 - - ## Uncomment these lines if you wish to show all errors on the screen. - #php_value display_errors 1 - #php_value error_reporting 2047 - - # enable expirations - - ExpiresActive On - ExpiresByType image/gif "access plus 1 month" - ExpiresByType image/png "access plus 1 month" - ExpiresByType image/jpg "access plus 1 month" - ExpiresByType image/jpeg "access plus 1 month" - ExpiresByType image/x-icon "access plus 1 month" - ExpiresByType text/css "access plus 2 weeks" - ExpiresByType application/javascript "access plus 2 weeks" - - - #Enable deflating (gzip) of content - - # Insert filter - SetOutputFilter DEFLATE - - # Netscape 4.x has some problems... - BrowserMatch ^Mozilla/4 gzip-only-text/html - - # Netscape 4.06-4.08 have some more problems - BrowserMatch ^Mozilla/4\.0[678] no-gzip - - # MSIE masquerades as Netscape, but it is fine - # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html - - # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 - # the above regex won't work. You can use the following - # workaround to get the desired effect: - BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html - - # Don't compress images - SetEnvIfNoCase Request_URI \ - \.(?:gif|jpe?g|png)$ no-gzip dont-vary - - - SSLCertificateFile /etc/letsencrypt/live/libcat2.arlingtonva.us/cert.pem - SSLCertificateKeyFile /etc/letsencrypt/live/libcat2.arlingtonva.us/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf - SSLCertificateChainFile /etc/letsencrypt/live/libcat2.arlingtonva.us/chain.pem - - - - ServerName libcat.arlingtonva.us - DocumentRoot "/usr/local/aspen-discovery/code/web" - CustomLog /var/log/aspen-discovery/arlington.production/access.log combined - ErrorLog /var/log/aspen-discovery/arlington.production/error.log - ErrorDocument 404 /Error/Handle404 - - - Require all granted - Options -Indexes -MultiViews - AllowOverride All - - SetEnv aspen_server arlington.production - - # Friendly URLs - - RewriteEngine On - RewriteRule ^robots\.txt$ /robots.php [NC,L] - RewriteRule ^sitemapindex\.xml$ /sitemapindex.php [NC,L] - RewriteRule ^grouped_work_site_map(.+)$ /sitemaps/grouped_work_site_map$1 [NC,L] - - # Anything that is a direct php file still goes to that - RewriteRule ^(.*?\.php).*$ $1 [NC,L] - - # Rewrite everything else to go through index.php - RewriteRule ^(.*)$ index.php [NC,L] - - - # Disable Magic Quotes - php_value magic_quotes_gpc false - - # Session Settings - php_value session.use_cookies 1 - php_value session.use_only_cookies 1 - # important: we want to serialize objects - php_value session.auto_start 0 - #php_value session.cookie_secure 1 - # we should check session lifetime in "read" methods - # since PHP cookies do not "refresh" them during activity - # hence we leave them alive until browser closes - php_value session.cookie_lifetime 0 - php_value session.gc_maxlifetime 6000 - - ## Uncomment these lines if you wish to show all errors on the screen. - #php_value display_errors 1 - #php_value error_reporting 2047 - - # enable expirations - - ExpiresActive On - ExpiresByType image/gif "access plus 1 month" - ExpiresByType image/png "access plus 1 month" - ExpiresByType image/jpg "access plus 1 month" - ExpiresByType image/jpeg "access plus 1 month" - ExpiresByType image/x-icon "access plus 1 month" - ExpiresByType text/css "access plus 2 weeks" - ExpiresByType application/javascript "access plus 2 weeks" - - - #Enable deflating (gzip) of content - - # Insert filter - SetOutputFilter DEFLATE - - # Netscape 4.x has some problems... - BrowserMatch ^Mozilla/4 gzip-only-text/html - - # Netscape 4.06-4.08 have some more problems - BrowserMatch ^Mozilla/4\.0[678] no-gzip - - # MSIE masquerades as Netscape, but it is fine - # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html - - # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 - # the above regex won't work. You can use the following - # workaround to get the desired effect: - BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html - - # Don't compress images - SetEnvIfNoCase Request_URI \ - \.(?:gif|jpe?g|png)$ no-gzip dont-vary - - - SSLCertificateFile /etc/letsencrypt/live/libcat2.arlingtonva.us/cert.pem - SSLCertificateKeyFile /etc/letsencrypt/live/libcat2.arlingtonva.us/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf - SSLCertificateChainFile /etc/letsencrypt/live/libcat2.arlingtonva.us/chain.pem - - - diff --git a/sites/arlington.production/httpd-arlington.production.conf b/sites/arlington.production/httpd-arlington.production.conf deleted file mode 100644 index 5517355a4d..0000000000 --- a/sites/arlington.production/httpd-arlington.production.conf +++ /dev/null @@ -1,9 +0,0 @@ - - ServerName libcat2.arlingtonva.us - Redirect permanent / https://libcat2.arlingtonva.us/ - - - - ServerName libcat.arlingtonva.us - Redirect permanent / https://libcat.arlingtonva.us/ - diff --git a/sites/aspencat.production/aspencat.production.sh b/sites/aspencat.production/aspencat.production.sh deleted file mode 100755 index 11529c206b..0000000000 --- a/sites/aspencat.production/aspencat.production.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -if [ -z "$1" ] - then - echo "To use, run with start, stop or restart for the first parameter." -fi - -if [[ ( "$1" == "stop" ) || ( "$1" == "restart") ]] - then - /usr/local/aspen-discovery/sites/default/solr-8.11.2/bin/solr stop -p 8080 -s "/data/aspen-discovery/aspencat.production/solr7" -d "/usr/local/aspen-discovery/sites/default/solr-8.11.2/server" -fi - -if [[ ( "$1" == "start" ) || ( "$1" == "restart") ]] - then - /usr/local/aspen-discovery/sites/default/solr-8.11.2/bin/solr start -m 14g -p 8080 -s "/data/aspen-discovery/aspencat.production/solr7" -d "/usr/local/aspen-discovery/sites/default/solr-8.11.2/server" -fi diff --git a/sites/aspencat.production/conf/config.cron.ini b/sites/aspencat.production/conf/config.cron.ini deleted file mode 100644 index 931c8d9242..0000000000 --- a/sites/aspencat.production/conf/config.cron.ini +++ /dev/null @@ -1,35 +0,0 @@ -# Configures the processes that cron will run when it is invoked with -# additional information about the frequency that it is invoked. -# The ini file should have a Processes section with the name of each process to run -# -# Processes should have the format: -# - Process Name = Process Handler Class -# -# Each process will also have a section based on the Process Name. -# the section should contain the following keys at a minimum -# - description = A brief description of what the process does -# - lastRun = the timestamp the process was last run. Blank if the process has never been run. -# - frequencyHours = the frequency with which the process should be run in hours or 0 if it should be run each time cron runs. -# -# General settings can also be defined that will be sent to all processes. -# these can include database connection information, solr settings, etc. - -[Processes] -UpdateReadingHistory = com.turning_leaf_technologies.cron.reading_history.UpdateReadingHistory -BookCoverCleanup = com.turning_leaf_technologies.cron.BookCoverCleanup -DatabaseCleanup = com.turning_leaf_technologies.cron.DatabaseCleanup - -[UpdateReadingHistory] -description = Updates reading History for the patron based on what is currently checked out. -frequencyHours = 0 - -[BookCoverCleanup] -description = Cleans up any book covers that are out of date (more than 2 weeks old). -frequencyHours = 0 - -[DatabaseCleanup] -description = Does cleanup of the database to remove records that are no longer needed -frequencyHours = 0 - - - diff --git a/sites/aspencat.production/conf/config.ini b/sites/aspencat.production/conf/config.ini deleted file mode 100644 index d758ff7533..0000000000 --- a/sites/aspencat.production/conf/config.ini +++ /dev/null @@ -1,39 +0,0 @@ -; -; default config file for customization -; Aspen Discovery Configuration -; - -; No changes are necessary in the System Section -[System] -debug = false -timings = false -debugJs = true -operatingSystem = linux - -; This section will need to be customized for your installation -[Site] -local = /usr/local/aspen-discovery/code/web -coverPath = /data/aspen-discovery/aspencat.production/covers -url = https://catalog.aspencat.info -title = "AspenCat" -libraryName = AspenCat -; Find valid timezone values here: -; http://www.php.net/manual/en/timezones.php -timezone = "America/Denver" - -[Catalog] -ils = Koha -driver = Koha -showFines = true -url = https://clic.bywatersolutions.com -linking_url = https://clic.bywatersolutions.com -staffClientUrl = https://staff-clic.bywatersolutions.com - -; This section requires no changes for most installations -[Index] -url = http://localhost:8080/solr - -[Reindex] -solrPort = 8080 -marcPath = /data/aspen-discovery/aspencat.production/ils/marc -lexileExportPath = /data/aspen-discovery/lexileTitles.txt diff --git a/sites/aspencat.production/conf/crontab_settings.txt b/sites/aspencat.production/conf/crontab_settings.txt deleted file mode 100644 index 41c96a051c..0000000000 --- a/sites/aspencat.production/conf/crontab_settings.txt +++ /dev/null @@ -1,107 +0,0 @@ -################## -## Crontab setting from a 'configuration' file -## -## to save current crontab to file: crontab -l > crontab_settings.txt -## -## to set the current crontab from a file : crontab < crontab_settings.txt -## -################## - -# !! Please make all changes to the crontab within the git repository system and apply through the above method. -# -# ie : -# git pull origin {current branch} -# sudo /usr/local/aspen-discovery/code/cron/check_crontab.sh aspencat.production -# sudo crontab < /usr/local/aspen-discovery/sites/aspencat.production/conf/crontab_settings.txt - -################### -# * * * * * command to execute -# │ │ │ │ │ -# │ │ │ │ └───── day of week (0 - 6) -# │ │ │ │ (0 to 6 are Sunday to Saturday, or use names (Sun,Mon,Tue,Wed,Thu,Fri,Sat); 7 is Sunday, the same as 0) -# │ │ │ └────────── month (1 - 12) -# │ │ └─────────────── day of month (1 - 31) -# │ └──────────────────── hour (0 - 23) -# └───────────────────────── min (0 - 59) -## taken from https://en.wikipedia.org/wiki/Cron -############## - -############# -# Indexing Tasks # -############# -@reboot solr php /usr/local/aspen-discovery/code/web/cron/checkSolr.php aspencat.production -5 2 * * * solr php /usr/local/aspen-discovery/code/web/cron/updateSuggesters.php aspencat.production -7 3 * * * aspen php /usr/local/aspen-discovery/code/web/cron/createSitemaps.php aspencat.production -*/2 * * * * solr php /usr/local/aspen-discovery/code/web/cron/checkSolr.php aspencat.production -*/5 * * * * aspen php /usr/local/aspen-discovery/code/web/cron/checkBackgroundProcesses.php aspencat.production - -######################################################## -# Regular extracts that don't need to run continuously # -######################################################## -0 2 * * * aspen cd /usr/local/aspen-discovery/code/oai_indexer; java -jar oai_indexer.jar aspencat.production -0 23 * * * aspen cd /usr/local/aspen-discovery/code/reindexer; java -jar reindexer.jar aspencat.production nightly - -###################### -# MySQL Nightly Dump # -###################### -# backup important bits at 12:10am daily -10 0 * * * root php /usr/local/aspen-discovery/code/web/cron/backupAspen.php aspencat.production - -############################################# -# New York Times Best seller Lists Updating # -############################################# -30 10 * * 0-1 aspen php /usr/local/aspen-discovery/code/web/cron/updateNYTLists.php aspencat.production -# update on Sundays and Mondays at 7:15 - -########################### -# Aspen Discovery Cleanup # -########################### - -# Temp files -26 0 * * * root cd /tmp; rm -rf CURLCOOKIE* - -# CRON for Aspen (book cover cache cleanup etc.) -00 22 * * * aspen cd /usr/local/aspen-discovery/code/cron; java -jar cron.jar aspencat.production - -00 01 * * * root certbot renew - -############################ -# Fix Cover Permissions # -############################ -*/15 * * * * root chown aspen:aspen_apache /data/aspen-discovery/aspencat.production/covers/original/* -*/15 * * * * root chmod g+rw /data/aspen-discovery/aspencat.production/covers/original/* - -############################# -# Refresh SAML SSO metadata # -############################# -00 05 * * * aspen php /usr/local/aspen-discovery/code/web/cron/refreshSsoMetadata.php aspencat.production - -######################### -# Fetch Notification Receipts # -######################### -0 11 * * 1-5 aspen php /usr/local/aspen-discovery/code/web/cron/fetchNotificationReceipts.php aspencat.production - -######################### -# Update Saved Searches # -######################### -0 10 * * 1-5 aspen php /usr/local/aspen-discovery/code/web/cron/updateSavedSearches.php aspencat.production - -######################### -# Send Custom LiDA Notifications # -######################### -*/15 * * * * aspen php /usr/local/aspen-discovery/code/web/cron/sendLiDANotifications.php aspencat.production - -######################### -# Run Scheduled Updates # -######################### -*/5 * * * * root php /usr/local/aspen-discovery/code/web/cron/runScheduledUpdate.php aspencat.production - -######################### -# Update Translations from Community # -######################### -15 1 * * * root php /usr/local/aspen-discovery/code/web/cron/updateCommunityTranslations.php aspencat.production - -###################################### -# Run Clam AV Scans # -###################################### -00 3 * * * root truncate -s0 /var/log/aspen-discovery/clam_av.log; /bin/clamscan --recursive=yes --quiet -i --exclude-dir=/var/lib/mysql --exclude-dir=/sys --exclude-dir=/data/aspen-discovery/aspencat.production/solr7/ --exclude-dir=/var/log/aspen-discovery/aspencat.production --exclude-dir=/data/aspen-discovery/aspencat.production/covers/small --exclude-dir=/data/aspen-discovery/aspencat.production/covers/medium --exclude-dir=/data/aspen-discovery/aspencat.production/covers/large --log=/var/log/aspen-discovery/clam_av.log diff --git a/sites/aspencat.production/httpd-aspencat.production-le-ssl.conf b/sites/aspencat.production/httpd-aspencat.production-le-ssl.conf deleted file mode 100644 index de1135b0de..0000000000 --- a/sites/aspencat.production/httpd-aspencat.production-le-ssl.conf +++ /dev/null @@ -1,193 +0,0 @@ - - - ServerName catalog2.aspencat.info - ServerAlias *.catalog2.aspencat.info - DocumentRoot "/usr/local/aspen-discovery/code/web" - CustomLog /var/log/aspen-discovery/aspencat.production/access.log combined - ErrorLog /var/log/aspen-discovery/aspencat.production/error.log - ErrorDocument 404 /Error/Handle404 - - - Require all granted - Options -Indexes -MultiViews - AllowOverride All - - SetEnv aspen_server aspencat.production - - # Friendly URLs - - RewriteEngine On - - # Bot Blocking - Include /usr/local/aspen-discovery/sites/aspencat.production/conf/badBotsLocal.conf - Include /usr/local/aspen-discovery/sites/default/conf/badBotsDefault.conf - - RewriteRule ^robots\.txt$ /robots.php [NC,L] - RewriteRule ^sitemapindex\.xml$ /sitemapindex.php [NC,L] - RewriteRule ^grouped_work_site_map(.+)$ /sitemaps/grouped_work_site_map$1 [NC,L] - - # Anything that is a direct php file still goes to that - RewriteRule ^(.*?\.php).*$ $1 [NC,L] - - # Rewrite everything else to go through index.php - RewriteRule ^(.*)$ index.php [NC,L] - - - # Disable Magic Quotes - php_value magic_quotes_gpc false - - # Session Settings - php_value session.use_cookies 1 - php_value session.use_only_cookies 1 - # important: we want to serialize objects - php_value session.auto_start 0 - #php_value session.cookie_secure 1 - # we should check session lifetime in "read" methods - # since PHP cookies do not "refresh" them during activity - # hence we leave them alive until browser closes - php_value session.cookie_lifetime 0 - php_value session.gc_maxlifetime 6000 - - ## Uncomment these lines if you wish to show all errors on the screen. - #php_value display_errors 1 - #php_value error_reporting 2047 - - # enable expirations - - ExpiresActive On - ExpiresByType image/gif "access plus 1 month" - ExpiresByType image/png "access plus 1 month" - ExpiresByType image/jpg "access plus 1 month" - ExpiresByType image/jpeg "access plus 1 month" - ExpiresByType image/x-icon "access plus 1 month" - ExpiresByType text/css "access plus 2 weeks" - ExpiresByType application/javascript "access plus 2 weeks" - - - #Enable deflating (gzip) of content - - # Insert filter - SetOutputFilter DEFLATE - - # Netscape 4.x has some problems... - BrowserMatch ^Mozilla/4 gzip-only-text/html - - # Netscape 4.06-4.08 have some more problems - BrowserMatch ^Mozilla/4\.0[678] no-gzip - - # MSIE masquerades as Netscape, but it is fine - # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html - - # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 - # the above regex won't work. You can use the following - # workaround to get the desired effect: - BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html - - # Don't compress images - SetEnvIfNoCase Request_URI \ - \.(?:gif|jpe?g|png)$ no-gzip dont-vary - - - Include /etc/letsencrypt/options-ssl-apache.conf - SSLCertificateFile /etc/letsencrypt/live/catalog2.aspencat.info/cert.pem - SSLCertificateKeyFile /etc/letsencrypt/live/catalog2.aspencat.info/privkey.pem - SSLCertificateChainFile /etc/letsencrypt/live/catalog2.aspencat.info/chain.pem - - - - - - ServerName catalog.aspencat.info - ServerAlias *.catalog.aspencat.info - DocumentRoot "/usr/local/aspen-discovery/code/web" - CustomLog /var/log/aspen-discovery/aspencat.production/access.log combined - ErrorLog /var/log/aspen-discovery/aspencat.production/error.log - ErrorDocument 404 /Error/Handle404 - - - Require all granted - Options -Indexes -MultiViews - AllowOverride All - - SetEnv aspen_server aspencat.production - - # Friendly URLs - - RewriteEngine On - - # Bot Blocking - Include /usr/local/aspen-discovery/sites/aspencat.production/conf/badBotsLocal.conf - Include /usr/local/aspen-discovery/sites/default/conf/badBotsDefault.conf - - RewriteRule ^robots\.txt$ /robots.php [NC,L] - RewriteRule ^sitemapindex\.xml$ /sitemapindex.php [NC,L] - RewriteRule ^grouped_work_site_map(.+)$ /sitemaps/grouped_work_site_map$1 [NC,L] - - # Anything that is a direct php file still goes to that - RewriteRule ^(.*?\.php).*$ $1 [NC,L] - - # Rewrite everything else to go through index.php - RewriteRule ^(.*)$ index.php [NC,L] - - - # Disable Magic Quotes - php_value magic_quotes_gpc false - - # Session Settings - php_value session.use_cookies 1 - php_value session.use_only_cookies 1 - # important: we want to serialize objects - php_value session.auto_start 0 - #php_value session.cookie_secure 1 - # we should check session lifetime in "read" methods - # since PHP cookies do not "refresh" them during activity - # hence we leave them alive until browser closes - php_value session.cookie_lifetime 0 - php_value session.gc_maxlifetime 6000 - - ## Uncomment these lines if you wish to show all errors on the screen. - #php_value display_errors 1 - #php_value error_reporting 2047 - - # enable expirations - - ExpiresActive On - ExpiresByType image/gif "access plus 1 month" - ExpiresByType image/png "access plus 1 month" - ExpiresByType image/jpg "access plus 1 month" - ExpiresByType image/jpeg "access plus 1 month" - ExpiresByType image/x-icon "access plus 1 month" - ExpiresByType text/css "access plus 2 weeks" - ExpiresByType application/javascript "access plus 2 weeks" - - - #Enable deflating (gzip) of content - - # Insert filter - SetOutputFilter DEFLATE - - # Netscape 4.x has some problems... - BrowserMatch ^Mozilla/4 gzip-only-text/html - - # Netscape 4.06-4.08 have some more problems - BrowserMatch ^Mozilla/4\.0[678] no-gzip - - # MSIE masquerades as Netscape, but it is fine - # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html - - # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 - # the above regex won't work. You can use the following - # workaround to get the desired effect: - BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html - - # Don't compress images - SetEnvIfNoCase Request_URI \ - \.(?:gif|jpe?g|png)$ no-gzip dont-vary - - - Include /etc/letsencrypt/options-ssl-apache.conf - SSLCertificateFile /etc/letsencrypt/live/catalog.aspencat.info-0001/cert.pem - SSLCertificateKeyFile /etc/letsencrypt/live/catalog.aspencat.info-0001/privkey.pem - SSLCertificateChainFile /etc/letsencrypt/live/catalog.aspencat.info-0001/fullchain.pem - - diff --git a/sites/aspencat.production/httpd-aspencat.production.conf b/sites/aspencat.production/httpd-aspencat.production.conf deleted file mode 100644 index 8bc1af6dd7..0000000000 --- a/sites/aspencat.production/httpd-aspencat.production.conf +++ /dev/null @@ -1,14 +0,0 @@ - - ServerName catalog2.aspencat.info - - Redirect permanent / https://catalog2.aspencat.info - - - - ServerName catalog.aspencat.info - ServerAlias *.catalog.aspencat.info - - RewriteEngine On - RewriteCond %{HTTP_HOST} ^(.*)$ [NC] - RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=302] - diff --git a/sites/basinlibraries.production/aspen_solr.service b/sites/basinlibraries.production/aspen_solr.service deleted file mode 100644 index 1d75b93831..0000000000 --- a/sites/basinlibraries.production/aspen_solr.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Aspen Discovery Solr Service -After=network.target - -[Service] -Type=simple -User=solr -ExecStart=/usr/local/aspen-discovery/sites/basinlibraries.production/basinlibraries.production.sh start -ExecStop=/usr/local/aspen-discovery/sites/basinlibraries.production/basinlibraries.production.sh stop -Restart=on-abort - -[Install] -WantedBy=multi-user.target diff --git a/sites/basinlibraries.production/basinlibraries.production.sh b/sites/basinlibraries.production/basinlibraries.production.sh deleted file mode 100755 index f33b36fac0..0000000000 --- a/sites/basinlibraries.production/basinlibraries.production.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -if [ -z "$1" ] - then - echo "To use, run with start, stop or restart for the first parameter." -fi - -if [[ ( "$1" == "stop" ) || ( "$1" == "restart") ]] - then - /usr/local/aspen-discovery/sites/default/solr-8.11.2/bin/solr stop -p 8080 -s "/data/aspen-discovery/basinlibraries.production/solr7" -d "/usr/local/aspen-discovery/sites/default/solr-8.11.2/server" -fi - -if [[ ( "$1" == "start" ) || ( "$1" == "restart") ]] - then - /usr/local/aspen-discovery/sites/default/solr-8.11.2/bin/solr start -m 6g -p 8080 -s "/data/aspen-discovery/basinlibraries.production/solr7" -d "/usr/local/aspen-discovery/sites/default/solr-8.11.2/server" -fi diff --git a/sites/basinlibraries.production/conf/config.cron.ini b/sites/basinlibraries.production/conf/config.cron.ini deleted file mode 100644 index 931c8d9242..0000000000 --- a/sites/basinlibraries.production/conf/config.cron.ini +++ /dev/null @@ -1,35 +0,0 @@ -# Configures the processes that cron will run when it is invoked with -# additional information about the frequency that it is invoked. -# The ini file should have a Processes section with the name of each process to run -# -# Processes should have the format: -# - Process Name = Process Handler Class -# -# Each process will also have a section based on the Process Name. -# the section should contain the following keys at a minimum -# - description = A brief description of what the process does -# - lastRun = the timestamp the process was last run. Blank if the process has never been run. -# - frequencyHours = the frequency with which the process should be run in hours or 0 if it should be run each time cron runs. -# -# General settings can also be defined that will be sent to all processes. -# these can include database connection information, solr settings, etc. - -[Processes] -UpdateReadingHistory = com.turning_leaf_technologies.cron.reading_history.UpdateReadingHistory -BookCoverCleanup = com.turning_leaf_technologies.cron.BookCoverCleanup -DatabaseCleanup = com.turning_leaf_technologies.cron.DatabaseCleanup - -[UpdateReadingHistory] -description = Updates reading History for the patron based on what is currently checked out. -frequencyHours = 0 - -[BookCoverCleanup] -description = Cleans up any book covers that are out of date (more than 2 weeks old). -frequencyHours = 0 - -[DatabaseCleanup] -description = Does cleanup of the database to remove records that are no longer needed -frequencyHours = 0 - - - diff --git a/sites/basinlibraries.production/conf/config.ini b/sites/basinlibraries.production/conf/config.ini deleted file mode 100644 index c93bbb5330..0000000000 --- a/sites/basinlibraries.production/conf/config.ini +++ /dev/null @@ -1,35 +0,0 @@ -; No changes are necessary in the System Section -[System] -available = true -debug = false -timings = false -operatingSystem = linux - -; This section will need to be customized for your installation -[Site] -local = /usr/local/aspen-discovery/code/web -coverPath = /data/aspen-discovery/basinlibraries.production/covers -url = https://catalog.uintahlibrary.org -title = "Basin Libraries Consortium" -libraryName = Basin Libraries -; Find valid timezone values here: -; http://www.php.net/manual/en/timezones.php -timezone = "America/Denver" - -[Catalog] -ils = Koha -driver = Koha -showFines = true -url = https://basinlibraries.org/ -linking_url = https://basinlibraries.org/ -staffClientUrl = https://staff.basinlibraries.org - -; This section requires no changes for most installations -[Index] -url = http://localhost:8080/solr - - -[Reindex] -solrPort = 8080 -marcPath = /data/aspen-discovery/basinlibraries.production/ils/marc -lexileExportPath = /data/aspen-discovery/lexileTitles.txt diff --git a/sites/basinlibraries.production/conf/crontab_settings.txt b/sites/basinlibraries.production/conf/crontab_settings.txt deleted file mode 100644 index 306de67188..0000000000 --- a/sites/basinlibraries.production/conf/crontab_settings.txt +++ /dev/null @@ -1,108 +0,0 @@ -################## -## Crontab setting from a 'configuration' file -## -## to save current crontab to file: crontab -l > crontab_settings.txt -## -## to set the current crontab from a file : crontab < crontab_settings.txt -## -################## - -# !! Please make all changes to the crontab within the git repository system and apply through the above method. -# -# ie : -# git pull origin {current branch} -# sudo /usr/local/aspen-discovery/code/cron/check_crontab.sh basinlibraries.production -# sudo crontab < /usr/local/aspen-discovery/sites/basinlibraries.production/conf/crontab_settings.txt - -################### -# * * * * * command to execute -# │ │ │ │ │ -# │ │ │ │ └───── day of week (0 - 6) -# │ │ │ │ (0 to 6 are Sunday to Saturday, or use names (Sun,Mon,Tue,Wed,Thu,Fri,Sat); 7 is Sunday, the same as 0) -# │ │ │ └────────── month (1 - 12) -# │ │ └─────────────── day of month (1 - 31) -# │ └──────────────────── hour (0 - 23) -# └───────────────────────── min (0 - 59) -## taken from https://en.wikipedia.org/wiki/Cron -############## - -############# -# Indexing Tasks # -############# -@reboot solr php /usr/local/aspen-discovery/code/web/cron/checkSolr.php basinlibraries.production -5 2 * * * solr php /usr/local/aspen-discovery/code/web/cron/updateSuggesters.php basinlibraries.production -7 3 * * * aspen php /usr/local/aspen-discovery/code/web/cron/createSitemaps.php basinlibraries.production -*/2 * * * * solr php /usr/local/aspen-discovery/code/web/cron/checkSolr.php basinlibraries.production -*/5 * * * * aspen php /usr/local/aspen-discovery/code/web/cron/checkBackgroundProcesses.php basinlibraries.production - -######################################################## -# Regular extracts that don't need to run continuously # -######################################################## -0 2 * * * aspen cd /usr/local/aspen-discovery/code/oai_indexer; java -jar oai_indexer.jar basinlibraries.production -0 2 * * * aspen cd /usr/local/aspen-discovery/code/reindexer; java -jar reindexer.jar basinlibraries.production nightly - -###################### -# MySQL Nightly Dump # -###################### -# backup important bits at 12:10am daily -10 0 * * * root php /usr/local/aspen-discovery/code/web/cron/backupAspen.php basinlibraries.production - -############################################# -# New York Times Best seller Lists Updating # -############################################# -0 21 * * 3 aspen php /usr/local/aspen-discovery/code/web/cron/updateNYTLists.php basinlibraries.production -# update on Sundays and Mondays at 7:07 - -########################### -# Aspen Discovery Cleanup # -########################### - -# Temp files -26 0 * * * root cd /tmp; rm -rf CURLCOOKIE* - -# CRON for Aspen (book cover cache cleanup etc.) -00 22 * * * aspen cd /usr/local/aspen-discovery/code/cron; java -jar cron.jar basinlibraries.production - -00 01 * * * root certbot renew - - -############################ -# Fix Cover Permissions # -############################ -*/15 * * * * root chown aspen:aspen_apache /data/aspen-discovery/basinlibraries.production/covers/original/* -*/15 * * * * root chmod g+rw /data/aspen-discovery/basinlibraries.production/covers/original/* - -############################# -# Refresh SAML SSO metadata # -############################# -00 05 * * * aspen php /usr/local/aspen-discovery/code/web/cron/refreshSsoMetadata.php basinlibraries.production - -######################### -# Fetch Notification Receipts # -######################### -0 11 * * 1-5 aspen php /usr/local/aspen-discovery/code/web/cron/fetchNotificationReceipts.php basinlibraries.production - -######################### -# Update Saved Searches # -######################### -0 10 * * 1-5 aspen php /usr/local/aspen-discovery/code/web/cron/updateSavedSearches.php basinlibraries.production - -######################### -# Send Custom LiDA Notifications # -######################### -*/15 * * * * aspen php /usr/local/aspen-discovery/code/web/cron/sendLiDANotifications.php basinlibraries.production - -######################### -# Run Scheduled Updates # -######################### -*/5 * * * * root php /usr/local/aspen-discovery/code/web/cron/runScheduledUpdate.php basinlibraries.production - -######################### -# Update Translations from Community # -######################### -15 1 * * * root php /usr/local/aspen-discovery/code/web/cron/updateCommunityTranslations.php basinlibraries.production - -###################################### -# Run Clam AV Scans # -###################################### -00 3 * * * root truncate -s0 /var/log/aspen-discovery/clam_av.log; /bin/clamscan --recursive=yes --quiet -i --exclude-dir=/var/lib/mysql --exclude-dir=/sys --exclude-dir=/data/aspen-discovery/basinlibraries.production/solr7/ --exclude-dir=/var/log/aspen-discovery/basinlibraries.production --exclude-dir=/data/aspen-discovery/basinlibraries.production/covers/small --exclude-dir=/data/aspen-discovery/basinlibraries.production/covers/medium --exclude-dir=/data/aspen-discovery/basinlibraries.production/covers/large --log=/var/log/aspen-discovery/clam_av.log diff --git a/sites/basinlibraries.production/httpd-basinlibraries.production-le-ssl.conf b/sites/basinlibraries.production/httpd-basinlibraries.production-le-ssl.conf deleted file mode 100644 index e8161458bf..0000000000 --- a/sites/basinlibraries.production/httpd-basinlibraries.production-le-ssl.conf +++ /dev/null @@ -1,123 +0,0 @@ - - - RewriteEngine On - - - ServerName catalog.uintahlibrary.org - ServerAlias catalog.uintahlibrary.org - ServerAlias uintahlibrary.org - ServerAlias www.uintahlibrary.org - ServerAlias history.uintahlibrary.org - ServerAlias rhc.uintahlibrary.org - ServerAlias catalog.duchesnelibraries.org - ServerAlias catalog.wasatchlibrary.org - ServerAlias wasatchlibrary.org - ServerAlias www.wasatchlibrary.org - ServerAlias www.wasatch.lib.ut.us - - DocumentRoot "/usr/local/aspen-discovery/code/web" - CustomLog /var/log/aspen-discovery/basinlibraries.production/access.log combined - ErrorLog /var/log/aspen-discovery/basinlibraries.production/error.log - ErrorDocument 404 /Error/Handle404 - - - Require all granted - Options -Indexes -MultiViews - AllowOverride All - - SetEnv aspen_server basinlibraries.production - SetEnvIf Host catalog.uintahlibrary.org active_library=uintah - SetEnvIf Host uintahlibrary.org active_library=uintah - SetEnvIf Host www.uintahlibrary.org active_library=uintah - SetEnvIf Host library.uintah.gov active_library=uintah - SetEnvIf Host history.uintahlibrary.org active_library=rhc - SetEnvIf Host rhc.uintahlibrary.org active_library=rhc - SetEnvIf Host catalog.duchesnelibraries.org active_library=duchesne - SetEnvIf Host catalog.wasatchlibrary.org active_library=wcl - SetEnvIf Host wasatchlibrary.org active_library=wcl - SetEnvIf Host www.wasatchlibrary.org active_library=wcl - SetEnvIf Host www.wasatch.lib.ut.us active_library=wcl - SetEnvIf Host basintest.aspendiscovery.org active_library=basintest - - # Friendly URLs - - RewriteEngine On - - # Bot Blocking - Include /usr/local/aspen-discovery/sites/basinlibraries.production/conf/badBotsLocal.conf - Include /usr/local/aspen-discovery/sites/default/conf/badBotsDefault.conf - - RewriteRule ^robots\.txt$ /robots.php [NC,L] - RewriteRule ^sitemapindex\.xml$ /sitemapindex.php [NC,L] - RewriteRule ^grouped_work_site_map(.+)$ /sitemaps/grouped_work_site_map$1 [NC,L] - - # Anything that is a direct php file still goes to that - RewriteRule ^(.*?\.php).*$ $1 [NC,L] - - # Rewrite everything else to go through index.php - RewriteRule ^(.*)$ index.php [NC,L] - - - # Disable Magic Quotes - php_value magic_quotes_gpc false - - # Session Settings - php_value session.use_cookies 1 - php_value session.use_only_cookies 1 - # important: we want to serialize objects - php_value session.auto_start 0 - #php_value session.cookie_secure 1 - # we should check session lifetime in "read" methods - # since PHP cookies do not "refresh" them during activity - # hence we leave them alive until browser closes - php_value session.cookie_lifetime 0 - php_value session.gc_maxlifetime 6000 - - ## Uncomment these lines if you wish to show all errors on the screen. - #php_value display_errors 1 - #php_value error_reporting 2047 - - # enable expirations - - ExpiresActive On - ExpiresByType image/gif "access plus 1 month" - ExpiresByType image/png "access plus 1 month" - ExpiresByType image/jpg "access plus 1 month" - ExpiresByType image/jpeg "access plus 1 month" - ExpiresByType image/x-icon "access plus 1 month" - ExpiresByType text/css "access plus 2 weeks" - ExpiresByType application/javascript "access plus 2 weeks" - - - #Enable deflating (gzip) of content - - # Insert filter - SetOutputFilter DEFLATE - - # Netscape 4.x has some problems... - BrowserMatch ^Mozilla/4 gzip-only-text/html - - # Netscape 4.06-4.08 have some more problems - BrowserMatch ^Mozilla/4\.0[678] no-gzip - - # MSIE masquerades as Netscape, but it is fine - # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html - - # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 - # the above regex won't work. You can use the following - # workaround to get the desired effect: - BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html - - # Don't compress images - SetEnvIfNoCase Request_URI \ - \.(?:gif|jpe?g|png)$ no-gzip dont-vary - - - ServerAlias basintest.aspendiscovery.org - ServerAlias library.uintah.gov - Include /etc/letsencrypt/options-ssl-apache.conf - SSLCertificateFile /etc/letsencrypt/live/catalog.duchesnelibraries.org/cert.pem - SSLCertificateKeyFile /etc/letsencrypt/live/catalog.duchesnelibraries.org/privkey.pem - SSLCertificateChainFile /etc/letsencrypt/live/catalog.duchesnelibraries.org/chain.pem - - diff --git a/sites/basinlibraries.production/httpd-basinlibraries.production.conf b/sites/basinlibraries.production/httpd-basinlibraries.production.conf deleted file mode 100644 index ae00e4499a..0000000000 --- a/sites/basinlibraries.production/httpd-basinlibraries.production.conf +++ /dev/null @@ -1,59 +0,0 @@ - - ServerName catalog.uintahlibrary.org - - Redirect permanent / https://catalog.uintahlibrary.org/ - - - - ServerName history.uintahlibrary.org - - Redirect permanent / https://history.uintahlibrary.org/ - - - - ServerName rhc.uintahlibrary.org - - Redirect permanent / https://rhc.uintahlibrary.org/ - - - - ServerName uintahlibrary.org - - Redirect permanent / https://uintahlibrary.org/ - - - - ServerName www.uintahlibrary.org - - Redirect permanent / https://www.uintahlibrary.org/ - - - - ServerName catalog.duchesnelibraries.org - - Redirect permanent / https://catalog.duchesnelibraries.org/ - - - - ServerName catalog.wasatchlibrary.org - - Redirect permanent / https://catalog.wasatchlibrary.org/ - - - - ServerName wasatchlibrary.org - - Redirect permanent / https://wasatchlibrary.org/ - - - - ServerName www.wasatchlibrary.org - - Redirect permanent / https://www.wasatchlibrary.org/ - - - - ServerName www.wasatch.lib.ut.us - - Redirect permanent / https://www.wasatch.lib.ut.us/ - diff --git a/sites/basinlibraries.production/lang/en.ini b/sites/basinlibraries.production/lang/en.ini deleted file mode 100644 index 504d3ca8bf..0000000000 --- a/sites/basinlibraries.production/lang/en.ini +++ /dev/null @@ -1,2 +0,0 @@ -# case sensitive, key=value, no need for quotation marks -Reset My PIN = Reset My Password \ No newline at end of file diff --git a/sites/model.production/conf/config.cron.ini b/sites/model.production/conf/config.cron.ini deleted file mode 100644 index 931c8d9242..0000000000 --- a/sites/model.production/conf/config.cron.ini +++ /dev/null @@ -1,35 +0,0 @@ -# Configures the processes that cron will run when it is invoked with -# additional information about the frequency that it is invoked. -# The ini file should have a Processes section with the name of each process to run -# -# Processes should have the format: -# - Process Name = Process Handler Class -# -# Each process will also have a section based on the Process Name. -# the section should contain the following keys at a minimum -# - description = A brief description of what the process does -# - lastRun = the timestamp the process was last run. Blank if the process has never been run. -# - frequencyHours = the frequency with which the process should be run in hours or 0 if it should be run each time cron runs. -# -# General settings can also be defined that will be sent to all processes. -# these can include database connection information, solr settings, etc. - -[Processes] -UpdateReadingHistory = com.turning_leaf_technologies.cron.reading_history.UpdateReadingHistory -BookCoverCleanup = com.turning_leaf_technologies.cron.BookCoverCleanup -DatabaseCleanup = com.turning_leaf_technologies.cron.DatabaseCleanup - -[UpdateReadingHistory] -description = Updates reading History for the patron based on what is currently checked out. -frequencyHours = 0 - -[BookCoverCleanup] -description = Cleans up any book covers that are out of date (more than 2 weeks old). -frequencyHours = 0 - -[DatabaseCleanup] -description = Does cleanup of the database to remove records that are no longer needed -frequencyHours = 0 - - - diff --git a/sites/model.production/conf/config.ini b/sites/model.production/conf/config.ini deleted file mode 100644 index 2da68f3728..0000000000 --- a/sites/model.production/conf/config.ini +++ /dev/null @@ -1,38 +0,0 @@ -; -; default config file for customization -; Aspen Discovery Configuration -; - -; No changes are necessary in the System Section -[System] -debug = false -timings = false -debugJs = true -operatingSystem = linux - -; This section will need to be customized for your installation -[Site] -local = /usr/local/aspen-discovery/code/web -coverPath = /data/aspen-discovery/model.production/covers -url = https://aspen-model.bywatersolutions.com -title = "Aspen Demo" -libraryName = ByWater Solutions Demo -; Find valid timezone values here: -; http://www.php.net/manual/en/timezones.php -timezone = "America/Los_Angeles" - -[Catalog] -driver = Koha -showFines = true -url = https://model.bywatersolutions.com -linking_url = https://model.bywatersolutions.com -staffClientUrl = https://staff.model.bywatersolutions.com/ - -; This section requires no changes for most installations -[Index] -url = http://localhost:8080/solr - -[Reindex] -solrPort = 8080 -marcPath = /data/aspen-discovery/model.production/ils/marc -lexileExportPath = /data/aspen-discovery/lexileTitles.txt diff --git a/sites/model.production/conf/crontab_settings.txt b/sites/model.production/conf/crontab_settings.txt deleted file mode 100644 index 0865011be8..0000000000 --- a/sites/model.production/conf/crontab_settings.txt +++ /dev/null @@ -1,107 +0,0 @@ -################## -## Crontab setting from a 'configuration' file -## -## to save current crontab to file: crontab -l > crontab_settings.txt -## -## to set the current crontab from a file : crontab < crontab_settings.txt -## -################## - -# !! Please make all changes to the crontab within the git repository system and apply through the above method. -# -# ie : -# git pull origin {current branch} -# sudo /usr/local/aspen-discovery/code/cron/check_crontab.sh model.production -# sudo crontab < /usr/local/aspen-discovery/sites/model.production/conf/crontab_settings.txt - -################### -# * * * * * command to execute -# │ │ │ │ │ -# │ │ │ │ └───── day of week (0 - 6) -# │ │ │ │ (0 to 6 are Sunday to Saturday, or use names (Sun,Mon,Tue,Wed,Thu,Fri,Sat); 7 is Sunday, the same as 0) -# │ │ │ └────────── month (1 - 12) -# │ │ └─────────────── day of month (1 - 31) -# │ └──────────────────── hour (0 - 23) -# └───────────────────────── min (0 - 59) -## taken from https://en.wikipedia.org/wiki/Cron -############## - -############# -# Indexing Tasks # -############# -@reboot solr php /usr/local/aspen-discovery/code/web/cron/checkSolr.php model.production -5 2 * * * solr php /usr/local/aspen-discovery/code/web/cron/updateSuggesters.php model.production -7 3 * * * aspen php /usr/local/aspen-discovery/code/web/cron/createSitemaps.php model.production -*/2 * * * * solr php /usr/local/aspen-discovery/code/web/cron/checkSolr.php model.production -*/5 * * * * aspen php /usr/local/aspen-discovery/code/web/cron/checkBackgroundProcesses.php model.production - -######################################################## -# Regular extracts that don't need to run continuously # -######################################################## -0 2 * * * aspen cd /usr/local/aspen-discovery/code/oai_indexer; java -jar oai_indexer.jar model.production -0 2 * * * aspen cd /usr/local/aspen-discovery/code/reindexer; java -jar reindexer.jar model.production nightly - -###################### -# MySQL Nightly Dump # -###################### -# backup important bits at 12:10am daily -10 0 * * * root php /usr/local/aspen-discovery/code/web/cron/backupAspen.php model.production - -############################################# -# New York Times Best seller Lists Updating # -############################################# -15 7 * * 0-1 aspen php /usr/local/aspen-discovery/code/web/cron/updateNYTLists.php model.production -# update on Sundays and Mondays at 7:15 - -########################### -# Aspen Discovery Cleanup # -########################### - -# Temp files -26 0 * * * root cd /tmp; rm -rf CURLCOOKIE* - -# CRON for Aspen (book cover cache cleanup etc.) -00 22 * * * aspen cd /usr/local/aspen-discovery/code/cron; java -jar cron.jar model.production - -00 01 * * * root certbot renew - -############################ -# Fix Cover Permissions # -############################ -*/15 * * * * root chown aspen:aspen_apache /data/aspen-discovery/model.production/covers/original/* -*/15 * * * * root chmod g+rw /data/aspen-discovery/model.production/covers/original/* - -############################# -# Refresh SAML SSO metadata # -############################# -00 05 * * * aspen php /usr/local/aspen-discovery/code/web/cron/refreshSsoMetadata.php model.production - -######################### -# Fetch Notification Receipts # -######################### -0 11 * * 1-5 aspen php /usr/local/aspen-discovery/code/web/cron/fetchNotificationReceipts.php model.production - -######################### -# Update Saved Searches # -######################### -0 10 * * 1-5 aspen php /usr/local/aspen-discovery/code/web/cron/updateSavedSearches.php model.production - -######################### -# Send Custom LiDA Notifications # -######################### -*/15 * * * * aspen php /usr/local/aspen-discovery/code/web/cron/sendLiDANotifications.php model.production - -######################### -# Run Scheduled Updates # -######################### -*/5 * * * * root php /usr/local/aspen-discovery/code/web/cron/runScheduledUpdate.php model.production - -######################### -# Update Translations from Community # -######################### -15 1 * * * root php /usr/local/aspen-discovery/code/web/cron/updateCommunityTranslations.php model.production - -###################################### -# Run Clam AV Scans # -###################################### -00 3 * * * root truncate -s0 /var/log/aspen-discovery/clam_av.log; /bin/clamscan --recursive=yes --quiet -i --exclude-dir=/var/lib/mysql --exclude-dir=/sys --exclude-dir=/data/aspen-discovery/model.production/solr7/ --exclude-dir=/var/log/aspen-discovery/model.production --exclude-dir=/data/aspen-discovery/model.production/covers/small --exclude-dir=/data/aspen-discovery/model.production/covers/medium --exclude-dir=/data/aspen-discovery/model.production/covers/large --log=/var/log/aspen-discovery/clam_av.log diff --git a/sites/model.production/httpd-model.production-le-ssl.conf b/sites/model.production/httpd-model.production-le-ssl.conf deleted file mode 100644 index 8a62891ce5..0000000000 --- a/sites/model.production/httpd-model.production-le-ssl.conf +++ /dev/null @@ -1,104 +0,0 @@ - - - ServerName aspen-model.bywatersolutions.com - ServerAlias aspen-model.bywatersolutions.com - DocumentRoot "/usr/local/aspen-discovery/code/web" - CustomLog /var/log/aspen-discovery/model.production/access.log combined - ErrorLog /var/log/aspen-discovery/model.production/error.log - ErrorDocument 404 /Error/Handle404 - - - Require all granted - Options -Indexes -MultiViews - AllowOverride All - - SetEnv aspen_server model.production - SetEnvIf Host bywaterconsortium.aspendiscovery.org active_library=bywaterconsortium - SetEnvIf Host bookmobile.aspendiscovery.org active_library=bookmobile - SetEnvIf Host southwest.aspendiscovery.org active_library=southwest - SetEnvIf Host tribranches.aspendiscovery.org active_library=tribranches - - # Friendly URLs - - RewriteEngine On - - # Bot Blocking - Include /usr/local/aspen-discovery/sites/model.production/conf/badBotsLocal.conf - Include /usr/local/aspen-discovery/sites/default/conf/badBotsDefault.conf - - RewriteRule ^robots\.txt$ /robots.php [NC,L] - RewriteRule ^sitemapindex\.xml$ /sitemapindex.php [NC,L] - RewriteRule ^grouped_work_site_map(.+)$ /sitemaps/grouped_work_site_map$1 [NC,L] - - # Anything that is a direct php file still goes to that - RewriteRule ^(.*?\.php).*$ $1 [NC,L] - - # Rewrite everything else to go through index.php - RewriteRule ^(.*)$ index.php [NC,L] - - - # Disable Magic Quotes - php_value magic_quotes_gpc false - - # Session Settings - php_value session.use_cookies 1 - php_value session.use_only_cookies 1 - # important: we want to serialize objects - php_value session.auto_start 0 - #php_value session.cookie_secure 1 - # we should check session lifetime in "read" methods - # since PHP cookies do not "refresh" them during activity - # hence we leave them alive until browser closes - php_value session.cookie_lifetime 0 - php_value session.gc_maxlifetime 6000 - - ## Uncomment these lines if you wish to show all errors on the screen. - #php_value display_errors 1 - #php_value error_reporting 2047 - - # enable expirations - - ExpiresActive On - ExpiresByType image/gif "access plus 1 month" - ExpiresByType image/png "access plus 1 month" - ExpiresByType image/jpg "access plus 1 month" - ExpiresByType image/jpeg "access plus 1 month" - ExpiresByType image/x-icon "access plus 1 month" - ExpiresByType text/css "access plus 2 weeks" - ExpiresByType application/javascript "access plus 2 weeks" - - - #Enable deflating (gzip) of content - - # Insert filter - SetOutputFilter DEFLATE - - # Netscape 4.x has some problems... - BrowserMatch ^Mozilla/4 gzip-only-text/html - - # Netscape 4.06-4.08 have some more problems - BrowserMatch ^Mozilla/4\.0[678] no-gzip - - # MSIE masquerades as Netscape, but it is fine - # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html - - # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 - # the above regex won't work. You can use the following - # workaround to get the desired effect: - BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html - - # Don't compress images - SetEnvIfNoCase Request_URI \ - \.(?:gif|jpe?g|png)$ no-gzip dont-vary - - - ServerAlias bywaterconsortium.aspendiscovery.org - ServerAlias bookmobile.aspendiscovery.org - ServerAlias tribranches.aspendiscovery.org - ServerAlias southwest.aspendiscovery.org - Include /etc/letsencrypt/options-ssl-apache.conf - SSLCertificateFile /etc/letsencrypt/live/bywaterconsortium.aspendiscovery.org/cert.pem - SSLCertificateKeyFile /etc/letsencrypt/live/bywaterconsortium.aspendiscovery.org/privkey.pem - SSLCertificateChainFile /etc/letsencrypt/live/bywaterconsortium.aspendiscovery.org/chain.pem - - diff --git a/sites/model.production/httpd-model.production.conf b/sites/model.production/httpd-model.production.conf deleted file mode 100644 index 780e01fd57..0000000000 --- a/sites/model.production/httpd-model.production.conf +++ /dev/null @@ -1,6 +0,0 @@ - - ServerName aspen-model.bywatersolutions.com - - Redirect permanent / https://aspen-model.bywatersolutions.com/ - - diff --git a/sites/model.production/model.production.sh b/sites/model.production/model.production.sh deleted file mode 100755 index 17d0f46982..0000000000 --- a/sites/model.production/model.production.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -if [ -z "$1" ] - then - echo "To use, run with start, stop or restart for the first parameter." -fi - -if [[ ( "$1" == "stop" ) || ( "$1" == "restart") ]] - then - /usr/local/aspen-discovery/sites/default/solr-8.11.2/bin/solr stop -p 8080 -s "/data/aspen-discovery/model.production/solr7" -d "/usr/local/aspen-discovery/sites/default/solr-8.11.2/server" -fi - -if [[ ( "$1" == "start" ) || ( "$1" == "restart") ]] - then - /usr/local/aspen-discovery/sites/default/solr-8.11.2/bin/solr start -m 5g -p 8080 -s "/data/aspen-discovery/model.production/solr7" -d "/usr/local/aspen-discovery/sites/default/solr-8.11.2/server" -fi diff --git a/sites/model2.production/conf/config.cron.ini b/sites/model2.production/conf/config.cron.ini deleted file mode 100644 index 931c8d9242..0000000000 --- a/sites/model2.production/conf/config.cron.ini +++ /dev/null @@ -1,35 +0,0 @@ -# Configures the processes that cron will run when it is invoked with -# additional information about the frequency that it is invoked. -# The ini file should have a Processes section with the name of each process to run -# -# Processes should have the format: -# - Process Name = Process Handler Class -# -# Each process will also have a section based on the Process Name. -# the section should contain the following keys at a minimum -# - description = A brief description of what the process does -# - lastRun = the timestamp the process was last run. Blank if the process has never been run. -# - frequencyHours = the frequency with which the process should be run in hours or 0 if it should be run each time cron runs. -# -# General settings can also be defined that will be sent to all processes. -# these can include database connection information, solr settings, etc. - -[Processes] -UpdateReadingHistory = com.turning_leaf_technologies.cron.reading_history.UpdateReadingHistory -BookCoverCleanup = com.turning_leaf_technologies.cron.BookCoverCleanup -DatabaseCleanup = com.turning_leaf_technologies.cron.DatabaseCleanup - -[UpdateReadingHistory] -description = Updates reading History for the patron based on what is currently checked out. -frequencyHours = 0 - -[BookCoverCleanup] -description = Cleans up any book covers that are out of date (more than 2 weeks old). -frequencyHours = 0 - -[DatabaseCleanup] -description = Does cleanup of the database to remove records that are no longer needed -frequencyHours = 0 - - - diff --git a/sites/model2.production/conf/config.ini b/sites/model2.production/conf/config.ini deleted file mode 100644 index 8a97732216..0000000000 --- a/sites/model2.production/conf/config.ini +++ /dev/null @@ -1,38 +0,0 @@ -; -; default config file for customization -; Aspen Discovery Configuration -; - -; No changes are necessary in the System Section -[System] -debug = false -timings = false -debugJs = true -operatingSystem = linux - -; This section will need to be customized for your installation -[Site] -local = /usr/local/aspen-discovery/code/web -coverPath = /data/aspen-discovery/model2.production/covers -url = https://aspen-model2.bywatersolutions.com -title = "Aspen Academic Demo" -libraryName = Academic Demo -; Find valid timezone values here: -; http://www.php.net/manual/en/timezones.php -timezone = "America/Los_Angeles" - -[Catalog] -driver = Koha -showFines = true -url = https://model2.bywatersolutions.com -linking_url = https://model2.bywatersolutions.com -staffClientUrl = https://staff-model2.bywatersolutions.com - -; This section requires no changes for most installations -[Index] -url = http://localhost:8081/solr - -[Reindex] -solrPort = 8081 -marcPath = /data/aspen-discovery/model2.production/ils/marc -lexileExportPath = /data/aspen-discovery/lexileTitles.txt diff --git a/sites/model2.production/conf/crontab_settings.txt b/sites/model2.production/conf/crontab_settings.txt deleted file mode 100644 index 580b6ca2e5..0000000000 --- a/sites/model2.production/conf/crontab_settings.txt +++ /dev/null @@ -1,102 +0,0 @@ -################## -## Crontab setting from a 'configuration' file -## -## to save current crontab to file: crontab -l > crontab_settings.txt -## -## to set the current crontab from a file : crontab < crontab_settings.txt -## -################## - -# !! Please make all changes to the crontab within the git repository system and apply through the above method. -# -# ie : -# git pull origin {current branch} -# sudo /usr/local/aspen-discovery/code/cron/check_crontab.sh model2.production -# sudo crontab < /usr/local/aspen-discovery/sites/model2.production/conf/crontab_settings.txt - -################### -# * * * * * command to execute -# │ │ │ │ │ -# │ │ │ │ └───── day of week (0 - 6) -# │ │ │ │ (0 to 6 are Sunday to Saturday, or use names (Sun,Mon,Tue,Wed,Thu,Fri,Sat); 7 is Sunday, the same as 0) -# │ │ │ └────────── month (1 - 12) -# │ │ └─────────────── day of month (1 - 31) -# │ └──────────────────── hour (0 - 23) -# └───────────────────────── min (0 - 59) -## taken from https://en.wikipedia.org/wiki/Cron -############## - -############# -# Indexing Tasks # -############# -@reboot solr php /usr/local/aspen-discovery/code/web/cron/checkSolr.php model2.production -5 2 * * * solr php /usr/local/aspen-discovery/code/web/cron/updateSuggesters.php model2.production -7 3 * * * aspen php /usr/local/aspen-discovery/code/web/cron/createSitemaps.php model2.production -*/2 * * * * solr php /usr/local/aspen-discovery/code/web/cron/checkSolr.php model2.production -*/5 * * * * aspen php /usr/local/aspen-discovery/code/web/cron/checkBackgroundProcesses.php model2.production - -######################################################## -# Regular extracts that don't need to run continuously # -######################################################## -# 0 2 * * * aspen cd /usr/local/aspen-discovery/code/oai_indexer; java -jar oai_indexer.jar model2.production -0 2 * * * aspen cd /usr/local/aspen-discovery/code/reindexer; java -jar reindexer.jar model2.production nightly - -###################### -# MySQL Nightly Dump # -###################### -# backup important bits at 12:10am daily -10 0 * * * root php /usr/local/aspen-discovery/code/web/cron/backupAspen.php model2.production - -############################################# -# New York Times Best seller Lists Updating # -############################################# -15 7 * * 0-1 root php /usr/local/aspen-discovery/code/web/cron/updateNYTLists.php model2.production -# update on Sundays and Mondays at 7:15 - -########################### -# Aspen Discovery Cleanup # -########################### - -# Temp files -26 0 * * * root cd /tmp; rm -rf CURLCOOKIE* - -# CRON for Aspen (book cover cache cleanup etc.) -00 22 * * * aspen cd /usr/local/aspen-discovery/code/cron; java -jar cron.jar model2.production - -00 01 * * * root certbot renew - -############################ -# Fix Cover Permissions # -############################ -*/15 * * * * root chown aspen:aspen_apache /data/aspen-discovery/model2.production/covers/original/* -*/15 * * * * root chmod g+rw /data/aspen-discovery/model2.production/covers/original/* - -############################# -# Refresh SAML SSO metadata # -############################# -00 05 * * * aspen php /usr/local/aspen-discovery/code/web/cron/refreshSsoMetadata.php model2.production - -######################### -# Fetch Notification Receipts # -######################### -0 11 * * 1-5 aspen php /usr/local/aspen-discovery/code/web/cron/fetchNotificationReceipts.php model2.production - -######################### -# Update Saved Searches # -######################### -0 10 * * 1-5 aspen php /usr/local/aspen-discovery/code/web/cron/updateSavedSearches.php model2.production - -######################### -# Send Custom LiDA Notifications # -######################### -*/15 * * * * aspen php /usr/local/aspen-discovery/code/web/cron/sendLiDANotifications.php model2.production - -######################### -# Run Scheduled Updates # -######################### -*/5 * * * * root php /usr/local/aspen-discovery/code/web/cron/runScheduledUpdate.php model2.production - -######################### -# Update Translations from Community # -######################### -15 1 * * * root php /usr/local/aspen-discovery/code/web/cron/updateCommunityTranslations.php model2.production \ No newline at end of file diff --git a/sites/model2.production/httpd-model2.production-le-ssl.conf b/sites/model2.production/httpd-model2.production-le-ssl.conf deleted file mode 100644 index efcd08d58e..0000000000 --- a/sites/model2.production/httpd-model2.production-le-ssl.conf +++ /dev/null @@ -1,95 +0,0 @@ - - - ServerName aspen-model2.bywatersolutions.com - DocumentRoot "/usr/local/aspen-discovery/code/web" - CustomLog /var/log/aspen-discovery/model2.production/access.log combined - ErrorLog /var/log/aspen-discovery/model2.production/error.log - ErrorDocument 404 /Error/Handle404 - - - Require all granted - Options -Indexes -MultiViews - AllowOverride All - - SetEnv aspen_server model2.production - - # Friendly URLs - - RewriteEngine On - - # Bot Blocking - Include /usr/local/aspen-discovery/sites/model2.production/conf/badBotsLocal.conf - Include /usr/local/aspen-discovery/sites/default/conf/badBotsDefault.conf - - RewriteRule ^robots\.txt$ /robots.php [NC,L] - RewriteRule ^sitemapindex\.xml$ /sitemapindex.php [NC,L] - RewriteRule ^grouped_work_site_map(.+)$ /sitemaps/grouped_work_site_map$1 [NC,L] - - # Anything that is a direct php file still goes to that - RewriteRule ^(.*?\.php).*$ $1 [NC,L] - - # Rewrite everything else to go through index.php - RewriteRule ^(.*)$ index.php [NC,L] - - - # Disable Magic Quotes - php_value magic_quotes_gpc false - - # Session Settings - php_value session.use_cookies 1 - php_value session.use_only_cookies 1 - # important: we want to serialize objects - php_value session.auto_start 0 - #php_value session.cookie_secure 1 - # we should check session lifetime in "read" methods - # since PHP cookies do not "refresh" them during activity - # hence we leave them alive until browser closes - php_value session.cookie_lifetime 0 - php_value session.gc_maxlifetime 6000 - - ## Uncomment these lines if you wish to show all errors on the screen. - #php_value display_errors 1 - #php_value error_reporting 2047 - - # enable expirations - - ExpiresActive On - ExpiresByType image/gif "access plus 1 month" - ExpiresByType image/png "access plus 1 month" - ExpiresByType image/jpg "access plus 1 month" - ExpiresByType image/jpeg "access plus 1 month" - ExpiresByType image/x-icon "access plus 1 month" - ExpiresByType text/css "access plus 2 weeks" - ExpiresByType application/javascript "access plus 2 weeks" - - - #Enable deflating (gzip) of content - - # Insert filter - SetOutputFilter DEFLATE - - # Netscape 4.x has some problems... - BrowserMatch ^Mozilla/4 gzip-only-text/html - - # Netscape 4.06-4.08 have some more problems - BrowserMatch ^Mozilla/4\.0[678] no-gzip - - # MSIE masquerades as Netscape, but it is fine - # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html - - # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 - # the above regex won't work. You can use the following - # workaround to get the desired effect: - BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html - - # Don't compress images - SetEnvIfNoCase Request_URI \ - \.(?:gif|jpe?g|png)$ no-gzip dont-vary - - - SSLCertificateFile /etc/letsencrypt/live/aspen-model2.bywatersolutions.com/cert.pem - SSLCertificateKeyFile /etc/letsencrypt/live/aspen-model2.bywatersolutions.com/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf - SSLCertificateChainFile /etc/letsencrypt/live/aspen-model2.bywatersolutions.com/chain.pem - - diff --git a/sites/model2.production/httpd-model2.production.conf b/sites/model2.production/httpd-model2.production.conf deleted file mode 100644 index e5554971b2..0000000000 --- a/sites/model2.production/httpd-model2.production.conf +++ /dev/null @@ -1,4 +0,0 @@ - - ServerName aspen-model2.bywatersolutions.com - Redirect permanent / https://aspen-model2.bywatersolutions.com/ - diff --git a/sites/model2.production/model2.production.sh b/sites/model2.production/model2.production.sh deleted file mode 100755 index fca61539a4..0000000000 --- a/sites/model2.production/model2.production.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -if [ -z "$1" ] - then - echo "To use, run with start, stop or restart for the first parameter." -fi - -if [[ ( "$1" == "stop" ) || ( "$1" == "restart") ]] - then - /usr/local/aspen-discovery/sites/default/solr-8.11.2/bin/solr stop -p 8081 -s "/data/aspen-discovery/model2.production/solr7" -d "/usr/local/aspen-discovery/sites/default/solr-8.11.2/server" -fi - -if [[ ( "$1" == "start" ) || ( "$1" == "restart") ]] - then - /usr/local/aspen-discovery/sites/default/solr-8.11.2/bin/solr start -m 1g -p 8081 -s "/data/aspen-discovery/model2.production/solr7" -d "/usr/local/aspen-discovery/sites/default/solr-8.11.2/server" -fi diff --git a/sites/pueblo.production/aspen_solr.service b/sites/pueblo.production/aspen_solr.service deleted file mode 100644 index 65f6271f10..0000000000 --- a/sites/pueblo.production/aspen_solr.service +++ /dev/null @@ -1,18 +0,0 @@ -[Unit] -Description=Aspen Discovery Solr Service -After=network.target - -[Service] -Type=simple -User=root -ExecStart=/usr/local/aspen-discovery/sites/pueblo.production/pueblo.production.sh start -ExecStop=/usr/local/aspen-discovery/sites/pueblo.production/pueblo.production.sh stop -Restart=on-abort - -[Install] -WantedBy=multi-user.target - -REM -REM sudo ln -s /usr/local/aspen-discovery/sites/basinlibraries.production/aspen_solr.service /etc/systemd/system/aspen_solr.service -REM -REM Need to figure out how to start appropriately \ No newline at end of file diff --git a/sites/pueblo.production/conf/config.cron.ini b/sites/pueblo.production/conf/config.cron.ini deleted file mode 100644 index 931c8d9242..0000000000 --- a/sites/pueblo.production/conf/config.cron.ini +++ /dev/null @@ -1,35 +0,0 @@ -# Configures the processes that cron will run when it is invoked with -# additional information about the frequency that it is invoked. -# The ini file should have a Processes section with the name of each process to run -# -# Processes should have the format: -# - Process Name = Process Handler Class -# -# Each process will also have a section based on the Process Name. -# the section should contain the following keys at a minimum -# - description = A brief description of what the process does -# - lastRun = the timestamp the process was last run. Blank if the process has never been run. -# - frequencyHours = the frequency with which the process should be run in hours or 0 if it should be run each time cron runs. -# -# General settings can also be defined that will be sent to all processes. -# these can include database connection information, solr settings, etc. - -[Processes] -UpdateReadingHistory = com.turning_leaf_technologies.cron.reading_history.UpdateReadingHistory -BookCoverCleanup = com.turning_leaf_technologies.cron.BookCoverCleanup -DatabaseCleanup = com.turning_leaf_technologies.cron.DatabaseCleanup - -[UpdateReadingHistory] -description = Updates reading History for the patron based on what is currently checked out. -frequencyHours = 0 - -[BookCoverCleanup] -description = Cleans up any book covers that are out of date (more than 2 weeks old). -frequencyHours = 0 - -[DatabaseCleanup] -description = Does cleanup of the database to remove records that are no longer needed -frequencyHours = 0 - - - diff --git a/sites/pueblo.production/conf/config.ini b/sites/pueblo.production/conf/config.ini deleted file mode 100644 index 3cb1a339f9..0000000000 --- a/sites/pueblo.production/conf/config.ini +++ /dev/null @@ -1,34 +0,0 @@ -; No changes are necessary in the System Section -[System] -available = true -debug = false -timings = false -operatingSystem = linux - -; This section will need to be customized for your installation -[Site] -local = /usr/local/aspen-discovery/code/web -coverPath = /data/aspen-discovery/pueblo.production/covers -url = https://catalog.pueblolibrary.org -title = "Pueblo City-County Library" -libraryName = Pueblo Library -; Find valid timezone values here: -; http://www.php.net/manual/en/timezones.php -timezone = "America/Denver" - -[Catalog] -driver = Koha -showFines = true -url = https://pueblopl.bywatersolutions.com/ -linking_url = https://pueblopl.bywatersolutions.com/ -staffClientUrl = https://staff-pueblopl.bywatersolutions.com - -; This section requires no changes for most installations -[Index] -url = http://localhost:8080/solr - - -[Reindex] -solrPort = 8080 -marcPath = /data/aspen-discovery/pueblo.production/ils/marc -lexileExportPath = /data/aspen-discovery/lexileTitles.txt diff --git a/sites/pueblo.production/conf/crontab_settings.txt b/sites/pueblo.production/conf/crontab_settings.txt deleted file mode 100644 index 50c28461e3..0000000000 --- a/sites/pueblo.production/conf/crontab_settings.txt +++ /dev/null @@ -1,107 +0,0 @@ -################## -## Crontab setting from a 'configuration' file -## -## to save current crontab to file: crontab -l > crontab_settings.txt -## -## to set the current crontab from a file : crontab < crontab_settings.txt -## -################## - -# !! Please make all changes to the crontab within the git repository system and apply through the above method. -# -# ie : -# git pull origin {current branch} -# sudo /usr/local/aspen-discovery/code/cron/check_crontab.sh pueblo.production -# sudo crontab < /usr/local/aspen-discovery/sites/pueblo.production/conf/crontab_settings.txt - -################### -# * * * * * command to execute -# │ │ │ │ │ -# │ │ │ │ └───── day of week (0 - 6) -# │ │ │ │ (0 to 6 are Sunday to Saturday, or use names (Sun,Mon,Tue,Wed,Thu,Fri,Sat); 7 is Sunday, the same as 0) -# │ │ │ └────────── month (1 - 12) -# │ │ └─────────────── day of month (1 - 31) -# │ └──────────────────── hour (0 - 23) -# └───────────────────────── min (0 - 59) -## taken from https://en.wikipedia.org/wiki/Cron -############## - -############# -# Indexing Tasks # -############# -@reboot solr php /usr/local/aspen-discovery/code/web/cron/checkSolr.php pueblo.production -5 2 * * * solr php /usr/local/aspen-discovery/code/web/cron/updateSuggesters.php pueblo.production -7 3 * * * aspen php /usr/local/aspen-discovery/code/web/cron/createSitemaps.php pueblo.production -*/2 * * * * solr php /usr/local/aspen-discovery/code/web/cron/checkSolr.php pueblo.production -*/5 * * * * aspen php /usr/local/aspen-discovery/code/web/cron/checkBackgroundProcesses.php pueblo.production - -######################################################## -# Regular extracts that don't need to run continuously # -######################################################## -0 2 * * * aspen cd /usr/local/aspen-discovery/code/oai_indexer; java -jar oai_indexer.jar pueblo.production -0 2 * * * aspen cd /usr/local/aspen-discovery/code/reindexer; java -jar reindexer.jar pueblo.production nightly - -###################### -# MySQL Nightly Dump # -###################### -# backup important bits at 12:10am daily -10 0 * * * root php /usr/local/aspen-discovery/code/web/cron/backupAspen.php pueblo.production aspen - -############################################# -# New York Times Best seller Lists Updating # -############################################# -00 10 * * 0-1 aspen php /usr/local/aspen-discovery/code/web/cron/updateNYTLists.php pueblo.production -# update on Sundays and Mondays at 7:15 - -########################### -# Aspen Discovery Cleanup # -########################### - -# Temp files -26 0 * * * root cd /tmp; rm -rf CURLCOOKIE* - -# CRON for Aspen (book cover cache cleanup etc.) -00 22 * * * aspen cd /usr/local/aspen-discovery/code/cron; java -jar cron.jar pueblo.production - -00 01 * * * root certbot renew - -############################ -# Fix Cover Permissions # -############################ -*/15 * * * * root chown aspen:aspen_apache /data/aspen-discovery/pueblo.production/covers/original/* -*/15 * * * * root chmod g+rw /data/aspen-discovery/pueblo.production/covers/original/* - -############################# -# Refresh SAML SSO metadata # -############################# -00 05 * * * aspen php /usr/local/aspen-discovery/code/web/cron/refreshSsoMetadata.php pueblo.production - -######################### -# Fetch Notification Receipts # -######################### -0 11 * * 1-5 aspen php /usr/local/aspen-discovery/code/web/cron/fetchNotificationReceipts.php pueblo.production - -######################### -# Update Saved Searches # -######################### -0 10 * * 1-5 aspen php /usr/local/aspen-discovery/code/web/cron/updateSavedSearches.php pueblo.production - -######################### -# Send Custom LiDA Notifications # -######################### -*/15 * * * * aspen php /usr/local/aspen-discovery/code/web/cron/sendLiDANotifications.php pueblo.production - -######################### -# Run Scheduled Updates # -######################### -*/5 * * * * root php /usr/local/aspen-discovery/code/web/cron/runScheduledUpdate.php pueblo.production - -######################### -# Update Translations from Community # -######################### -15 1 * * * root php /usr/local/aspen-discovery/code/web/cron/updateCommunityTranslations.php pueblo.production - -###################################### -# Run Clam AV Scans # -###################################### -00 3 * * * root truncate -s0 /var/log/aspen-discovery/clam_av.log; /bin/clamscan --recursive=yes --quiet -i --exclude-dir=/var/lib/mysql --exclude-dir=/sys --exclude-dir=/data/aspen-discovery/pueblo.production/solr7/ --exclude-dir=/var/log/aspen-discovery/pueblo.production --exclude-dir=/data/aspen-discovery/pueblo.production/covers/small --exclude-dir=/data/aspen-discovery/pueblo.production/covers/medium --exclude-dir=/data/aspen-discovery/pueblo.production/covers/large --log=/var/log/aspen-discovery/clam_av.log diff --git a/sites/pueblo.production/httpd-pueblo.production-le-ssl.conf b/sites/pueblo.production/httpd-pueblo.production-le-ssl.conf deleted file mode 100644 index b413b84f17..0000000000 --- a/sites/pueblo.production/httpd-pueblo.production-le-ssl.conf +++ /dev/null @@ -1,103 +0,0 @@ - - - ServerName catalog.pueblolibrary.org - ServerAlias catalog.pueblolibrary.org - DocumentRoot "/usr/local/aspen-discovery/code/web" - LogLevel warn - - SSLCertificateFile /etc/letsencrypt/live/catalog.pueblolibrary.org/cert.pem - SSLCertificateKeyFile /etc/letsencrypt/live/catalog.pueblolibrary.org/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf - SSLCertificateChainFile /etc/letsencrypt/live/catalog.pueblolibrary.org/chain.pem - - - #Order allow,deny - #allow from all - Require all granted - Options -Indexes -MultiViews - AllowOverride All - - SetEnv aspen_server pueblo.production - SetEnv active_library uintah - - # Friendly URLs - # - # You may need to adjust the RewriteBase to match your VuFind path. - # You can remove the line if your vufind instance will be located at the web - # server root. - # - - RewriteEngine On - - # Bot Blocking - Include /usr/local/aspen-discovery/sites/pueblo.production/conf/badBotsLocal.conf - Include /usr/local/aspen-discovery/sites/default/conf/badBotsDefault.conf - - RewriteRule ^robots\.txt$ /robots.php [NC,L] - RewriteRule ^sitemapindex\.xml$ /sitemapindex.php [NC,L] - RewriteRule ^grouped_work_site_map(.+)$ /sitemaps/grouped_work_site_map$1 [NC,L] - - # Anything that is a direct php file still goes to that - RewriteRule ^(.*?\.php).*$ $1 [NC,L] - - # Rewrite everything else to go through index.php - RewriteRule ^(.*)$ index.php [NC,L] - - - # Disable Magic Quotes - php_value magic_quotes_gpc false - - # Session Settings - php_value session.use_cookies 1 - php_value session.use_only_cookies 1 - # important: we want to serialize objects - php_value session.auto_start 0 - #php_value session.cookie_secure 1 - # we should check session lifetime in "read" methods - # since PHP cookies do not "refresh" them during activity - # hence we leave them alive until browser closes - php_value session.cookie_lifetime 0 - php_value session.gc_maxlifetime 6000 - - ## Uncomment these lines if you wish to show all errors on the screen. - #php_value display_errors 1 - #php_value error_reporting 2047 - - # enable expirations - - ExpiresActive On - ExpiresByType image/gif "access plus 1 month" - ExpiresByType image/png "access plus 1 month" - ExpiresByType image/jpg "access plus 1 month" - ExpiresByType image/jpeg "access plus 1 month" - ExpiresByType image/x-icon "access plus 1 month" - ExpiresByType text/css "access plus 2 weeks" - ExpiresByType application/javascript "access plus 2 weeks" - - - #Enable deflating (gzip) of content - - # Insert filter - SetOutputFilter DEFLATE - - # Netscape 4.x has some problems... - BrowserMatch ^Mozilla/4 gzip-only-text/html - - # Netscape 4.06-4.08 have some more problems - BrowserMatch ^Mozilla/4\.0[678] no-gzip - - # MSIE masquerades as Netscape, but it is fine - # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html - - # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 - # the above regex won't work. You can use the following - # workaround to get the desired effect: - BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html - - # Don't compress images - SetEnvIfNoCase Request_URI \ - \.(?:gif|jpe?g|png)$ no-gzip dont-vary - - - - diff --git a/sites/pueblo.production/httpd-pueblo.production.conf b/sites/pueblo.production/httpd-pueblo.production.conf deleted file mode 100644 index c9f4805be6..0000000000 --- a/sites/pueblo.production/httpd-pueblo.production.conf +++ /dev/null @@ -1,7 +0,0 @@ - - - ServerName catalog.pueblolibrary.org - - Redirect permanent / https://catalog.pueblolibrary.org/ - - diff --git a/sites/pueblo.production/pueblo.production.sh b/sites/pueblo.production/pueblo.production.sh deleted file mode 100755 index 22c7f531bb..0000000000 --- a/sites/pueblo.production/pueblo.production.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -if [ -z "$1" ] - then - echo "To use, run with start, stop or restart for the first parameter." -fi - -if [[ ( "$1" == "stop" ) || ( "$1" == "restart") ]] - then - /usr/local/aspen-discovery/sites/default/solr-8.11.2/bin/solr stop -p 8080 -s "/data/aspen-discovery/pueblo.production/solr7" -d "/usr/local/aspen-discovery/sites/default/solr-8.11.2/server" -fi - -if [[ ( "$1" == "start" ) || ( "$1" == "restart") ]] - then - /usr/local/aspen-discovery/sites/default/solr-8.11.2/bin/solr start -m 6g -p 8080 -s "/data/aspen-discovery/pueblo.production/solr7" -d "/usr/local/aspen-discovery/sites/default/solr-8.11.2/server" -fi