hosts/web-2: Fix mime types for gpg and ssh public keys served via clerie.de
This commit is contained in:
parent
8d06e8afac
commit
9c7c9ab183
@ -19,28 +19,41 @@
|
||||
hash = "sha256-GBAclFkcIzCPi8P+UmATw01uzND3EoUYXiytjVnEjtc=";
|
||||
};
|
||||
locations."/ssh" = {
|
||||
extraConfig = ''
|
||||
types {
|
||||
text/plain pub;
|
||||
}
|
||||
'';
|
||||
root = pkgs.clerie-keys;
|
||||
};
|
||||
locations."= /ssh/known_hosts" = {
|
||||
alias = pkgs.writeText "known_hosts" (import ../../lib/ssh-known-hosts.nix);
|
||||
extraConfig = ''
|
||||
types { } default_type "text/plain; charset=utf-8";
|
||||
types { }
|
||||
default_type "text/plain; charset=utf-8";
|
||||
'';
|
||||
};
|
||||
locations."/gpg" = {
|
||||
extraConfig = ''
|
||||
types {
|
||||
text/plain asc;
|
||||
}
|
||||
'';
|
||||
root = pkgs.clerie-keys;
|
||||
};
|
||||
locations."~ ^/.well-known/openpgpkey/hu/[a-z0-9]+/?$" = {
|
||||
root = pkgs.clerie-keys;
|
||||
extraConfig = ''
|
||||
types { } default_type application/octet-stream;
|
||||
types { }
|
||||
default_type application/octet-stream;
|
||||
add_header Access-Control-Allow-Origin * always;
|
||||
try_files /gpg/clerie@clerie.de =404;
|
||||
'';
|
||||
};
|
||||
locations."= /.well-known/openpgpkey/policy" = {
|
||||
extraConfig = ''
|
||||
types { } default_type application/octet-stream;
|
||||
types { }
|
||||
default_type application/octet-stream;
|
||||
add_header Access-Control-Allow-Origin * always;
|
||||
'';
|
||||
return = "200 ''";
|
||||
|
Loading…
Reference in New Issue
Block a user