aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/httpd.conf14
-rw-r--r--etc/package-details.conf15
-rw-r--r--etc/package-search.conf2
-rw-r--r--etc/package-version-details.conf7
-rw-r--r--etc/package-version-search.conf12
5 files changed, 31 insertions, 19 deletions
diff --git a/etc/httpd.conf b/etc/httpd.conf
index bf1d9e2..33658a8 100644
--- a/etc/httpd.conf
+++ b/etc/httpd.conf
@@ -5,7 +5,7 @@ ServerAdmin "${AP_ADMIN_EMAIL}"
User apache
Group apache
-DocumentRoot "${AP_WWW_DIR}/htdocs"
+DocumentRoot "${AP_WWW_DIR}"
CoreDumpDirectory "${AP_WORKSPACE_DIR}"
PidFile "${AP_WORKSPACE_DIR}/httpd.pid"
@@ -48,12 +48,12 @@ LoadModule package_search_srv ${AP_MODULE_DIR}/libbrep-apache.so
package-search-conf "${AP_CONFIG_DIR}/package-search.conf"
</IfModule>
-LoadModule package_version_search_srv ${AP_MODULE_DIR}/libbrep-apache.so
+LoadModule package_details_srv ${AP_MODULE_DIR}/libbrep-apache.so
-<IfModule package_version_search_srv>
- package-version-search-db-host ${AP_DB_HOST}
- package-version-search-db-port ${AP_DB_PORT}
- package-version-search-conf "${AP_CONFIG_DIR}/package-version-search.conf"
+<IfModule package_details_srv>
+ package-details-db-host ${AP_DB_HOST}
+ package-details-db-port ${AP_DB_PORT}
+ package-details-conf "${AP_CONFIG_DIR}/package-details.conf"
</IfModule>
LoadModule package_version_details_srv ${AP_MODULE_DIR}/libbrep-apache.so
@@ -69,7 +69,7 @@ LoadModule package_version_details_srv ${AP_MODULE_DIR}/libbrep-apache.so
</LocationMatch>
<LocationMatch ^/go/[^/]+$>
- SetHandler package-version-search
+ SetHandler package-details
</LocationMatch>
<LocationMatch ^/go/[^/]+/[^/]+$>
diff --git a/etc/package-details.conf b/etc/package-details.conf
new file mode 100644
index 0000000..49b3dce
--- /dev/null
+++ b/etc/package-details.conf
@@ -0,0 +1,15 @@
+# file : etc/package-details.conf
+# copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+#
+# brep::module options
+#
+verb 1
+
+# brep::package_details options
+#
+# @@ Set to 10
+results-on-page 2
+pages-in-pager 5
+# @@ Set to 500 (~ 80 chars x 6 lines)
+description-length 100
diff --git a/etc/package-search.conf b/etc/package-search.conf
index f7eb07c..80562b2 100644
--- a/etc/package-search.conf
+++ b/etc/package-search.conf
@@ -8,4 +8,6 @@ verb 1
# brep::package_search options
#
+# @@ Set to 10
results-on-page 2
+pages-in-pager 5
diff --git a/etc/package-version-details.conf b/etc/package-version-details.conf
index 61a6fb9..84fd75d 100644
--- a/etc/package-version-details.conf
+++ b/etc/package-version-details.conf
@@ -5,3 +5,10 @@
# brep::module options
#
verb 1
+
+# brep::package_version_details options
+#
+# @@ Set to 500 (~ 80 chars x 6 lines)
+description-length 100
+# @@ Set to 5000 (~ 80 chars x 60 lines)
+changes-length 100
diff --git a/etc/package-version-search.conf b/etc/package-version-search.conf
deleted file mode 100644
index f7f0d37..0000000
--- a/etc/package-version-search.conf
+++ /dev/null
@@ -1,12 +0,0 @@
-# file : etc/package-version-search.conf
-# copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
-# license : MIT; see accompanying LICENSE file
-#
-# brep::module options
-#
-verb 1
-
-# brep::package_version_search options
-#
-results-on-page 2
-pages-in-pager 10