✨ (hydrgogen/nginx) add some n7 projects
This commit is contained in:
parent
5d63d581cd
commit
4c00966690
16
hosts/hydrogen/services/nginx/n7/default.nix
Normal file
16
hosts/hydrogen/services/nginx/n7/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
14
hosts/hydrogen/services/nginx/n7/projet-audionumerique.nix
Normal file
14
hosts/hydrogen/services/nginx/n7/projet-audionumerique.nix
Normal 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";
|
||||
# };
|
||||
}
|
|
@ -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";
|
||||
}
|
Loading…
Reference in a new issue