nginx: pass /vks/by-email routes through hagrid, for now

This commit is contained in:
Vincent Breitmoser 2019-06-15 14:02:30 +02:00
parent 0fd71dc1c6
commit fd7437b673
No known key found for this signature in database
GPG Key ID: 7BD18320DEADFA11
1 changed files with 7 additions and 4 deletions

View File

@ -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)?([^/][^/])([^/][^/])(..*)$ {