31 lines
706 B
Nix
31 lines
706 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedOptimisation = true;
|
|
recommendedGzipSettings = true;
|
|
recommendedBrotliSettings = true;
|
|
|
|
# Documentation
|
|
virtualHosts = builtins.listToAttrs (builtins.map
|
|
(domain: {
|
|
name = domain;
|
|
value = {
|
|
listen = [
|
|
{
|
|
addr = "127.0.0.1";
|
|
port = 80;
|
|
}
|
|
];
|
|
|
|
root = "${pkgs.website-docs-nifoc-pw}/site/${domain}";
|
|
|
|
extraConfig = ''
|
|
autoindex on;
|
|
autoindex_format html;
|
|
'';
|
|
};
|
|
}) [ "katja.nifoc.pw" "katja_vmstats.nifoc.pw" "noesis.nifoc.pw" "propagator.nifoc.pw" ]);
|
|
};
|
|
}
|