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

26 lines
588 B
Nix
Raw Normal View History

2022-12-01 14:51:08 +00:00
{ pkgs, ... }:
{
services.nginx = {
# Documentation
2022-12-01 14:56:38 +00:00
virtualHosts = builtins.listToAttrs (builtins.map
2022-12-01 14:51:08 +00:00
(domain: {
name = domain;
value = {
2023-04-03 13:03:52 +00:00
quic = true;
2023-03-06 11:06:59 +00:00
http3 = true;
2023-03-07 09:02:50 +00:00
kTLS = true;
2022-12-26 17:17:59 +00:00
2022-12-01 14:51:08 +00:00
root = "${pkgs.website-docs-nifoc-pw}/site/${domain}";
2023-03-06 11:06:59 +00:00
forceSSL = true;
useACMEHost = "nifoc.pw";
2022-12-26 17:17:59 +00:00
2022-12-01 14:51:08 +00:00
extraConfig = ''
autoindex on;
autoindex_format html;
'';
};
2022-12-01 15:21:38 +00:00
}) [ "katja.nifoc.pw" "katja_vmstats.nifoc.pw" "noesis.nifoc.pw" "propagator.nifoc.pw" ]);
2022-12-01 14:51:08 +00:00
};
}