diff --git a/machines/web01/_configuration.nix b/machines/web01/_configuration.nix index bbd90a1..f28fc68 100644 --- a/machines/web01/_configuration.nix +++ b/machines/web01/_configuration.nix @@ -9,6 +9,7 @@ lib.extra.mkConfig { enabledServices = [ # List of services to enable "castopod" + "eleves" "metis" "linkal" "matterbridge" diff --git a/machines/web01/eleves.nix b/machines/web01/eleves.nix new file mode 100644 index 0000000..c97be77 --- /dev/null +++ b/machines/web01/eleves.nix @@ -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"; + }; + }; +} diff --git a/npins/sources.json b/npins/sources.json index 9762283..2529e09 100644 --- a/npins/sources.json +++ b/npins/sources.json @@ -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