]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/mermet/nginx/sourcephile.fr/covid19.nix
nix-serve: add on losurdo
[sourcephile-nix.git] / hosts / mermet / nginx / sourcephile.fr / covid19.nix
1 { domain, ... }:
2 { pkgs, lib, config, ... }:
3 let
4 inherit (config) networking;
5 inherit (config.services) nginx;
6 srv = "covid19";
7 in
8 {
9 services.nginx = {
10 virtualHosts."${srv}" = {
11 serverName = "${srv}.${domain}";
12 forceSSL = true;
13 useACMEHost = domain;
14 root = "/home/julm/www/${srv}";
15 extraConfig = ''
16 access_log off;
17 error_log /dev/null crit;
18 '';
19 locations."/".extraConfig = ''
20 index index.html;
21 '';
22 };
23 };
24 }