forked from DGNum/infrastructure
feat(www.eleves): Deploy eleves webpage on web01
This commit is contained in:
parent
ea1087cedf
commit
8234dfbb74
3 changed files with 30 additions and 0 deletions
|
@ -9,6 +9,7 @@ lib.extra.mkConfig {
|
||||||
enabledServices = [
|
enabledServices = [
|
||||||
# List of services to enable
|
# List of services to enable
|
||||||
"castopod"
|
"castopod"
|
||||||
|
"eleves"
|
||||||
"metis"
|
"metis"
|
||||||
"linkal"
|
"linkal"
|
||||||
"matterbridge"
|
"matterbridge"
|
||||||
|
|
18
machines/web01/eleves.nix
Normal file
18
machines/web01/eleves.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -131,6 +131,17 @@
|
||||||
"name": "nixpkgs-unstable",
|
"name": "nixpkgs-unstable",
|
||||||
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-24.05pre553710.010c7296f3b1/nixexprs.tar.xz",
|
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-24.05pre553710.010c7296f3b1/nixexprs.tar.xz",
|
||||||
"hash": "1h6q7vpy8rwcxfc7l34kvix1rhirgxysn7n0r7ivmwhd9s9rbbw7"
|
"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
|
"version": 3
|
||||||
|
|
Loading…
Reference in a new issue