]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/nginx/sourcephile.fr/doc.nix
unbound: enable unbound-control locally
[sourcephile-nix.git] / servers / mermet / nginx / sourcephile.fr / doc.nix
1 { pkgs, lib, config, ... }:
2 let inherit (config) networking;
3 inherit (config.services) nginx;
4 domain = "sourcephile.fr";
5 in
6 {
7 services.nginx = {
8 virtualHosts."doc" = {
9 serverName = "doc.${domain}";
10 serverAliases = [ domain ];
11 forceSSL = true;
12 useACMEHost = domain;
13 root = "/home/julm/work/sourcephile/doc";
14 locations."/".extraConfig = ''
15 autoindex on;
16 '';
17 };
18 };
19 }