feat(web01): Deploy simiweb as a static website
All checks were successful
lint / check (push) Successful in 30s
build configuration / build_vault01 (push) Successful in 56s
build configuration / build_web02 (push) Successful in 58s
build configuration / build_storage01 (push) Successful in 1m0s
build configuration / build_compute01 (push) Successful in 1m5s
build configuration / build_web01 (push) Successful in 2m26s

This commit is contained in:
Tom Hubrecht 2024-02-06 20:43:46 +01:00
parent ad5e23e766
commit dbbe739e7c
2 changed files with 24 additions and 2 deletions

View file

@ -1,4 +1,9 @@
{ lib, ... }:
{
lib,
pkgs,
sources,
...
}:
let
inherit (lib) recursiveUpdate;
@ -17,5 +22,11 @@ in
{
services.nginx.virtualHosts = recursiveUpdate (builtins.mapAttrs mkVhost websites) {
"eleves.dgnum.eu".locations."/".tryFiles = "$uri $uri/index.html /fr/$uri /en/$uri /fr/index.html";
"simi.normalesup.eu" = {
enableACME = true;
forceSSL = true;
root = (import sources.simiweb { inherit pkgs; }).site;
};
};
}

View file

@ -130,6 +130,17 @@
"url": "https://github.com/cachix/pre-commit-hooks.nix/archive/7c54e08a689b53c8a1e5d70169f2ec9e2a68ffaf.tar.gz",
"hash": "0gj03fzsqcybzr4shj7x62l0xc34w20zhphd2jg7sd2rxaw42x23"
},
"simiweb": {
"type": "Git",
"repository": {
"type": "Git",
"url": "https://git.dgnum.eu/jmarquet/simiweb"
},
"branch": "master",
"revision": "060d7f8c77355a968cfb76d22c2a60bc7100d7fb",
"url": null,
"hash": "0j4v5v3i269mpypm5h0n7w7mi2fnimyh3v2dd5d63f9s3444s0yy"
},
"wp4nix": {
"type": "Git",
"repository": {
@ -144,4 +155,4 @@
}
},
"version": 3
}
}