]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/nginx/sourcephile.fr/covid19.nix
kernel: set only vm.swappiness=10
[sourcephile-nix.git] / servers / mermet / nginx / sourcephile.fr / covid19.nix
1 { domain, ... }:
2 { pkgs, lib, config, ... }:
3 let inherit (config) networking;
4 inherit (config.services) nginx;
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 /dev/null crit;
17 '';
18 locations."/".extraConfig = ''
19 index index.html;
20 '';
21 };
22 };
23 }