(hydrgogen/nginx) add some n7 projects

This commit is contained in:
Laureηt 2023-06-25 13:50:51 +02:00
parent 5d63d581cd
commit 4c00966690
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
3 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{ pkgs, ... }: {
services.nginx.virtualHosts = {
"n7.laurent.fainsin.bzh" = {
enableACME = true;
forceSSL = true;
locations = {
"/".return = "301 $scheme://git.fainsin.bzh/ENSEEIHT";
} // {
"/projet-audionumerique/" = import ./projet-audionumerique.nix pkgs;
"/projet-systemes-algorithmes-repartis/" =
import ./projet-systemes-algorithmes-repartis.nix pkgs;
};
};
};
}

View file

@ -0,0 +1,14 @@
{ pkgs, ... }:
let
pages = pkgs.fetchgit {
url = "https://git.fainsin.bzh/ENSEEIHT/projet-audionumerique";
fetchLFS = true; # https://github.com/go-gitea/gitea/issues/4773
rev = "ece8c09f81430c4cc39dddbb1ad7f518f09aaa67"; # pages
sha256 = "130islkd3jy9vbjm3wnvadamk3n9qqlm8jn7yzywxagjyyrxg0y0";
};
in {
# "/projet-audionumerique/" = {
alias = "${pages}/";
index = "slides.html";
# };
}

View file

@ -0,0 +1,13 @@
{ pkgs, ... }:
let
pages = pkgs.fetchgit {
url =
"https://git.fainsin.bzh/ENSEEIHT/projet-systemes-algorithmes-repartis";
fetchLFS = true; # https://github.com/go-gitea/gitea/issues/4773
rev = "1826a53d95b19400b8dd252cd05b20012e3c3dac"; # pages
sha256 = "0n81hpcj7lj5i7jhl8af869vy6fp6bhyrk4fdl6y2rpjgp64zmq2";
};
in {
alias = "${pages}/";
index = "slides.html";
}