summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2019-02-11 07:24:41 -0800
committerJames E. Blair <jeblair@redhat.com>2019-02-11 07:24:41 -0800
commit07cd0862de103089207b95ca6b0968686852f67f (patch)
tree3e3c65203023698fdf0a34f3093bd2baa0e8cae0
parentf463a6c794b73a6f5958780e47de6e461ae1b4c5 (diff)
Set cache size to 1024
And tweak the rewrite url.
-rw-r--r--vhost.conf2
-rw-r--r--zuul-preview/main.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/vhost.conf b/vhost.conf
index d1fb671..10fa6ff 100644
--- a/vhost.conf
+++ b/vhost.conf
@@ -7,5 +7,5 @@
7 # LogLevel alert rewrite:trace6 7 # LogLevel alert rewrite:trace6
8 RewriteEngine On 8 RewriteEngine On
9 RewriteMap preview "prg://usr/local/bin/zuul-preview" 9 RewriteMap preview "prg://usr/local/bin/zuul-preview"
10 RewriteRule "^(.*)$" "${preview:%{HTTP_HOST}}$1" [P] 10 RewriteRule "^/?(.*)$" "${preview:%{HTTP_HOST}}/$1" [P]
11</VirtualHost> 11</VirtualHost>
diff --git a/zuul-preview/main.cc b/zuul-preview/main.cc
index 79e655d..0187c1a 100644
--- a/zuul-preview/main.cc
+++ b/zuul-preview/main.cc
@@ -94,7 +94,7 @@ int main(int, char**)
94 web::http::client::http_client client("https://zuul.opendev.org"); 94 web::http::client::http_client client("https://zuul.opendev.org");
95 95
96 string hostname; 96 string hostname;
97 Cache cache{2}; 97 Cache cache{1024};
98 while (getline(cin, hostname)) { 98 while (getline(cin, hostname)) {
99 // Expected hostname: 99 // Expected hostname:
100 // site.75031cad206c4014ad7a3387091d15ab.openstack.preview.opendev.org 100 // site.75031cad206c4014ad7a3387091d15ab.openstack.preview.opendev.org