blob: cf96119d22b710577372f888c1fe616781014792 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{ config, ... }:
let
webkeydirectoryPath = "/.well-known/openpgpkey/${config.networking.domain}";
in
{
services.nginx.virtualHosts.webkeydirectory = {
serverName = "openpgpkey.${config.networking.domain}";
locations = {
"${webkeydirectoryPath}/hu/" = {
alias = "${./hu}/";
extraConfig = ''
default_type "application/octet-stream";
add_header Access-Control-Allow-Origin * always;
'';
};
"=${webkeydirectoryPath}/policy".alias = builtins.toFile "policy" "";
"/".extraConfig = ''
return 444;
'';
};
forceSSL = true;
enableACME = true;
};
}
|