feat(www.eleves): Deploy eleves webpage on web01

This commit is contained in:
Tom Hubrecht 2023-12-11 15:54:00 +01:00
parent ea1087cedf
commit 8234dfbb74
3 changed files with 30 additions and 0 deletions

View file

@ -9,6 +9,7 @@ lib.extra.mkConfig {
enabledServices = [
# List of services to enable
"castopod"
"eleves"
"metis"
"linkal"
"matterbridge"

18
machines/web01/eleves.nix Normal file
View file

@ -0,0 +1,18 @@
{ sources, ... }:
let
host = "eleves.dgnum.eu";
serverAliases = [ ];
in {
services.nginx.virtualHosts.${host} = {
inherit serverAliases;
enableACME = true;
forceSSL = true;
root = "${sources.www-eleves.outPath}/www";
locations."/" = {
tryFiles = "$uri /fr/$uri /en/$uri /fr/index.html";
};
};
}

View file

@ -131,6 +131,17 @@
"name": "nixpkgs-unstable",
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-24.05pre553710.010c7296f3b1/nixexprs.tar.xz",
"hash": "1h6q7vpy8rwcxfc7l34kvix1rhirgxysn7n0r7ivmwhd9s9rbbw7"
},
"www-eleves": {
"type": "Git",
"repository": {
"type": "Git",
"url": "https://git.dgnum.eu/DGNum/www.eleves.ens.fr.git"
},
"branch": "main",
"revision": "8b3e9e99dbd4b1c6e6cad0dc42b103b5e6f78ef0",
"url": null,
"hash": "0avlgj967wn1w06lqc29cdg9p7msb4y01nbx38kflxgw0f0kysw2"
}
},
"version": 3