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

26 lines
588 B
Nix
Raw Normal View History

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