(hydrogen/nginx) add resume virtualHost

This commit is contained in:
Laureηt 2023-06-24 20:19:27 +02:00
parent e74505a986
commit c0ed6435c2
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
2 changed files with 24 additions and 1 deletions

View file

@ -8,5 +8,5 @@
recommendedProxySettings = true; recommendedProxySettings = true;
}; };
imports = [ ./personal-websites.nix ]; imports = [ ./personal-websites.nix ./resume.nix ];
} }

View file

@ -0,0 +1,23 @@
{ pkgs, ... }:
let
pages = pkgs.fetchgit {
url = "https://git.fainsin.bzh/Laurent/resume";
branchName = "pages";
fetchLFS = true; # https://github.com/go-gitea/gitea/issues/4773
rev = "c912f223da5440d63e23e6346a672e537dca088f";
sha256 = "sha256-Ay4JKKcYC5NGlordvIRL8TWmtuEEv7r3XVYbL4W9RR4=";
};
in {
services.nginx.virtualHosts = {
"resume.laurent.fainsin.bzh" = {
enableACME = true;
forceSSL = true;
locations = {
"/" = {
root = "${pages}/";
index = "resume.pdf";
};
};
};
};
}