infrastructure/machines/web01/static/default.nix
Tom Hubrecht de68b989ed
All checks were successful
build configuration / build_storage01 (push) Successful in 50s
build configuration / build_compute01 (push) Successful in 1m12s
build configuration / build_web01 (push) Successful in 1m45s
npins update / npins_update (push) Successful in 19s
ds-fr update / npins_update (push) Successful in 2m28s
feat(web01/static): Deploy https
2024-01-06 10:28:02 +01:00

13 lines
240 B
Nix

_:
let
websites = import ./npins;
mkVhost = name:
{ outPath, ... }: {
enableACME = true;
forceSSL = true;
root = "${outPath}/www";
};
in { services.nginx.virtualHosts = builtins.mapAttrs mkVhost websites; }