Case-sensitive matching on HKP requests.
This commit is contained in:
parent
425bc3d609
commit
7123c884bb
|
@ -43,21 +43,21 @@ http {
|
||||||
# Common HKP requests.
|
# Common HKP requests.
|
||||||
location /pks/lookup {
|
location /pks/lookup {
|
||||||
# sq keyserver get <KEYID>, gpg --receive-keys <KEYID>
|
# sq keyserver get <KEYID>, gpg --receive-keys <KEYID>
|
||||||
if ($args ~* "^op=get&options=mr&?search=(0x)?([A-F0-9]{2})([A-F0-9]{14})$") {
|
if ($args ~ "^op=get&options=mr&?search=(0x)?([A-F0-9]{2})([A-F0-9]{14})$") {
|
||||||
set $dir $2;
|
set $dir $2;
|
||||||
set $file $3;
|
set $file $3;
|
||||||
rewrite . /by-keyid/$dir/$file;
|
rewrite . /by-keyid/$dir/$file;
|
||||||
}
|
}
|
||||||
|
|
||||||
# gpg --receive-keys <FINGERPRINT>
|
# gpg --receive-keys <FINGERPRINT>
|
||||||
if ($args ~* "^op=get&options=mr&?search=(0x)?([A-F0-9]{2})([A-F0-9]{38})$") {
|
if ($args ~ "^op=get&options=mr&?search=(0x)?([A-F0-9]{2})([A-F0-9]{38})$") {
|
||||||
set $dir $2;
|
set $dir $2;
|
||||||
set $file $3;
|
set $file $3;
|
||||||
rewrite . /by-fingerprint/$dir/$file;
|
rewrite . /by-fingerprint/$dir/$file;
|
||||||
}
|
}
|
||||||
|
|
||||||
# gpg --locate-key <EMAIL>
|
# gpg --locate-key <EMAIL>
|
||||||
if ($args ~* "^op=get&options=mr&?search=(..)([^&]*)(@|%40)([^&]*)") {
|
if ($args ~ "^op=get&options=mr&?search=(..)([^&]*)(@|%40)([^&]*)") {
|
||||||
set $dir $1;
|
set $dir $1;
|
||||||
set $local $2;
|
set $local $2;
|
||||||
set $horst $4;
|
set $horst $4;
|
||||||
|
|
Loading…
Reference in New Issue