From d4327772db84f1ced9839d3f9a2dae2842932a83 Mon Sep 17 00:00:00 2001 From: Martin Czygan <martin.czygan@gmail.com> Date: Wed, 26 Nov 2014 18:24:34 +0100 Subject: [PATCH] Add local development config samples. In existing branch: $ git diff d26d7b8^..eff4fa4 -- local/dev > local-dev.patch Apply patch in the new branch: $ git apply local-dev.patch This combines the following commits: * eff4fa4 2014-11-06 | fix relative path in local/dev/.gitignore (origin/issue/4117, issue/4117) [Martin Czygan] * 8bd9928 2014-11-06 | ignore developer-specific ini files [Martin Czygan] * cbf3208 2014-10-23 | modified default dev-config [seltmann] * d26d7b8 2014-10-22 | added dev config and some gitignore entries [seltmann] --- local/dev/.gitignore | 2 + local/dev/config/vufind/DAIA.ini.sample | 2 + local/dev/config/vufind/config.ini.sample | 18 +++++++ local/dev/httpd-vufind.conf.sample | 62 +++++++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 local/dev/.gitignore create mode 100644 local/dev/config/vufind/DAIA.ini.sample create mode 100644 local/dev/config/vufind/config.ini.sample create mode 100644 local/dev/httpd-vufind.conf.sample diff --git a/local/dev/.gitignore b/local/dev/.gitignore new file mode 100644 index 00000000000..54c440d67db --- /dev/null +++ b/local/dev/.gitignore @@ -0,0 +1,2 @@ +config/vufind/*.ini +httpd-vufind.conf diff --git a/local/dev/config/vufind/DAIA.ini.sample b/local/dev/config/vufind/DAIA.ini.sample new file mode 100644 index 00000000000..a00a3c5dd40 --- /dev/null +++ b/local/dev/config/vufind/DAIA.ini.sample @@ -0,0 +1,2 @@ +[Global] +baseUrl = http://data.ub.uni-leipzig.de/item/DE-15/finc \ No newline at end of file diff --git a/local/dev/config/vufind/config.ini.sample b/local/dev/config/vufind/config.ini.sample new file mode 100644 index 00000000000..dae24b48c90 --- /dev/null +++ b/local/dev/config/vufind/config.ini.sample @@ -0,0 +1,18 @@ +[System] +debug = false + +[Index] +url = http://localhost:8080/solr + +[Parent_Config] +relative_path = ../../../config/vufind/config.ini + +[Site] +url = "http://localhost" + +[Authentication] +hash_passwords = "1" + +encrypt_ils_password = "1" + +ils_encryption_key = "3e2ac9b644dd4e0b64b179a0309ead13bb59202a" diff --git a/local/dev/httpd-vufind.conf.sample b/local/dev/httpd-vufind.conf.sample new file mode 100644 index 00000000000..a091fae027c --- /dev/null +++ b/local/dev/httpd-vufind.conf.sample @@ -0,0 +1,62 @@ +# Configuration for theme-specific resources: +AliasMatch ^/themes/([0-9a-zA-Z-_]*)/css/(.*)$ /usr/local/vufind2/themes/$1/css/$2 +AliasMatch ^/themes/([0-9a-zA-Z-_]*)/images/(.*)$ /usr/local/vufind2/themes/$1/images/$2 +AliasMatch ^/themes/([0-9a-zA-Z-_]*)/js/(.*)$ /usr/local/vufind2/themes/$1/js/$2 +<Directory ~ "^/usr/local/vufind2/themes/([0-9a-zA-Z-_]*)/(css|images|js)/"> + <IfModule !mod_authz_core.c> + Order allow,deny + Allow from all + </IfModule> + <IfModule mod_authz_core.c> + Require all granted + </IfModule> + AllowOverride All +</Directory> + +# Configuration for general VuFind base: +Alias / /usr/local/vufind2/public/ +<Directory /usr/local/vufind2/public/> + <IfModule !mod_authz_core.c> + Order allow,deny + Allow from all + </IfModule> + <IfModule mod_authz_core.c> + Require all granted + </IfModule> + AllowOverride All + + # Uncomment the following lines, if you wish to use the Shibboleth authentication + #AuthType shibboleth + #require shibboleth + + RewriteEngine On + RewriteBase / + + # If using VuDL, uncomment the following line, fill in your appropriate Fedora + # server and port, and make sure that Apache mod_proxy and mod_proxy_http are + # enabled. + #RewriteRule ^files/(.*)/(.*) http://your-fedora-server/fedora/objects/$1/datastreams/$2/content [P] + + RewriteCond %{REQUEST_FILENAME} -s [OR] + RewriteCond %{REQUEST_FILENAME} -l [OR] + RewriteCond %{REQUEST_FILENAME} -d + RewriteRule ^.*$ - [NC,L] + RewriteRule ^.*$ index.php [NC,L] + + # Uncomment this line to put VuFind into development mode in order to see more detailed messages: + SetEnv VUFIND_ENV development + + # Uncomment this line if you want to use the XHProf profiler; this is a developer-oriented option + # that most users will not need. Make sure the XHProf PHP libraries are available on your include + # path. See http://vufind.org/jira/browse/VUFIND-419 for more details. + #SetEnv VUFIND_PROFILER_XHPROF http://url/to/your/xhprof/web/interface + + # This line points to the local override directory where you should place your customized files + # to override VuFind core features/settings. Set to blank string ("") to disable. + SetEnv VUFIND_LOCAL_DIR /usr/local/vufind2/local/dev + + # This line specifies additional Zend Framework 2 modules to load after the standard VuFind module. + # Multiple modules may be specified separated by commas. This mechanism can be used to override + # core VuFind functionality without modifying core code. + # SetEnv VUFIND_LOCAL_MODULES finc +</Directory> -- GitLab