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