blob: 1adbdbebc7a7ff798f9bc2977bb888f9f5c3e894 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ 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" "";
};
forceSSL = true;
enableACME = true;
};
}
|