infrastructure/machines/web01/eleves.nix
Tom Hubrecht 0bab90256a
All checks were successful
build configuration / build_storage01 (push) Successful in 50s
build configuration / build_web01 (push) Successful in 51s
build configuration / build_compute01 (push) Successful in 1m20s
feat(eleves): Update and fix
2023-12-19 16:22:18 +01:00

18 lines
352 B
Nix

{ 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 $uri/index.html /fr/$uri /en/$uri /fr/index.html";
};
};
}