Shorten fingerprint to fpr in the Filesystem db.

- This keeps relative links below 60 bytes, allowing ext4 to store
    the link in the inode itself.
This commit is contained in:
Justus Winter 2019-02-22 16:08:52 +01:00
parent 9e4926fcc9
commit 36c06e036a
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386
2 changed files with 3 additions and 3 deletions

View File

@ -23,9 +23,9 @@ http {
}
location /by-fingerprint/ {
rewrite ^/by-fingerprint/([^/][^/])(..*)$ /by-fingerprint/$1/$2 break;
rewrite ^/by-fingerprint/([^/][^/])(..*)$ $1/$2 break;
default_type application/pgp-keys;
try_files /$uri =404;
try_files /by-fpr/$uri =404;
}
location /by-keyid/ {

View File

@ -76,7 +76,7 @@ impl Filesystem {
create_dir_all(base.join("scratch_pad"))?;
let base_by_keyid = base.join("public").join("by-keyid");
let base_by_fingerprint = base.join("public").join("by-fingerprint");
let base_by_fingerprint = base.join("public").join("by-fpr");
let base_by_email = base.join("public").join("by-email");
create_dir_all(&base_by_keyid)?;
create_dir_all(&base_by_fingerprint)?;