1
0
Fork 0
dotfiles/system/nixos/websites-tanker.nix

25 lines
588 B
Nix

{ pkgs, ... }:
{
services.nginx = {
# Documentation
virtualHosts = builtins.listToAttrs (builtins.map
(domain: {
name = domain;
value = {
quic = true;
http3 = true;
kTLS = true;
root = "${pkgs.website-docs-nifoc-pw}/site/${domain}";
forceSSL = true;
useACMEHost = "nifoc.pw";
extraConfig = ''
autoindex on;
autoindex_format html;
'';
};
}) [ "katja.nifoc.pw" "katja_vmstats.nifoc.pw" "noesis.nifoc.pw" "propagator.nifoc.pw" ]);
};
}