Browse Source

Set cache size to 1024

And tweak the rewrite url.
changes/91/636791/1
James E. Blair 3 months ago
parent
commit
07cd0862de
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      vhost.conf
  2. 1
    1
      zuul-preview/main.cc

+ 1
- 1
vhost.conf View File

@@ -7,5 +7,5 @@
7 7
         # LogLevel alert rewrite:trace6
8 8
         RewriteEngine On
9 9
         RewriteMap preview "prg://usr/local/bin/zuul-preview"
10
-        RewriteRule "^(.*)$" "${preview:%{HTTP_HOST}}$1" [P]
10
+        RewriteRule "^/?(.*)$" "${preview:%{HTTP_HOST}}/$1" [P]
11 11
 </VirtualHost>

+ 1
- 1
zuul-preview/main.cc View File

@@ -94,7 +94,7 @@ int main(int, char**)
94 94
   web::http::client::http_client client("https://zuul.opendev.org");
95 95
 
96 96
   string hostname;
97
-  Cache cache{2};
97
+  Cache cache{1024};
98 98
   while (getline(cin, hostname)) {
99 99
     // Expected hostname:
100 100
     // site.75031cad206c4014ad7a3387091d15ab.openstack.preview.opendev.org

Loading…
Cancel
Save