✨ (hydrogen/nginx) add resume virtualHost
This commit is contained in:
parent
e74505a986
commit
c0ed6435c2
|
@ -8,5 +8,5 @@
|
|||
recommendedProxySettings = true;
|
||||
};
|
||||
|
||||
imports = [ ./personal-websites.nix ];
|
||||
imports = [ ./personal-websites.nix ./resume.nix ];
|
||||
}
|
||||
|
|
23
hosts/hydrogen/services/nginx/resume.nix
Normal file
23
hosts/hydrogen/services/nginx/resume.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue