From fd7437b6730e12e957c7f2562b6d20525d13bf84 Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Sat, 15 Jun 2019 14:02:30 +0200 Subject: [PATCH] nginx: pass /vks/by-email routes through hagrid, for now --- hagrid-routes.conf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hagrid-routes.conf b/hagrid-routes.conf index 5e56e11..010bfc9 100644 --- a/hagrid-routes.conf +++ b/hagrid-routes.conf @@ -29,11 +29,14 @@ location /vks/v1/request-verify { location /vks/v1/ { location ~ ^/vks/v1/by-email/([^/][^/])([^/][^/])([^/]*)$ { - error_page 404 /errors/404-by-email.htm; - default_type application/pgp-keys; - add_header Content-Disposition 'attachment; filename="$1$2$3.asc"'; add_header 'Access-Control-Allow-Origin' '*'; - try_files /keys/links/by-email/$1/$2/$3 =404; + # we have some trouble with uri encoding here. just route through + # hagrid, for now. + proxy_pass http://127.0.0.1:8080; + # error_page 404 /errors/404-by-email.htm; + # default_type application/pgp-keys; + # add_header Content-Disposition 'attachment; filename="$1$2$3.asc"'; + # try_files /keys/links/by-email/$1/$2/$3 =404; } location ~ ^/vks/v1/by-fingerprint/(?:0x)?([^/][^/])([^/][^/])(..*)$ {