nginx: pass /vks/by-email routes through hagrid, for now
This commit is contained in:
parent
0fd71dc1c6
commit
fd7437b673
|
@ -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)?([^/][^/])([^/][^/])(..*)$ {
|
||||
|
|
Loading…
Reference in New Issue