infrastructure/machines/web01/eleves.nix

20 lines
355 B
Nix
Raw Normal View History

{ 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."/" = {
2023-12-19 15:46:20 +01:00
tryFiles = "$uri $uri/index.html 404";
index = "/fr/index.html";
};
};
}