nix/host/x86_64-linux/home/nginx/Resume.nix

18 lines
489 B
Nix
Raw Normal View History

{ config, ... }:
let
cfg = config.const.host.nginx;
in
2024-12-02 21:12:45 +03:00
{
"resume.${cfg.domain}" = {
inherit (cfg) sslCertificate sslCertificateKey extraConfig;
2025-01-09 17:08:21 +03:00
locations."/".extraConfig =
cfg.allowLocal
+ ''
if ($http_accept_language ~ ru) {
return 301 https://git.voronind.com/voronind/resume/releases/download/latest/VoronindRu.pdf;
}
return 301 https://git.voronind.com/voronind/resume/releases/download/latest/VoronindEn.pdf;
'';
};
2024-12-02 21:12:45 +03:00
}