about summary refs log tree commit diff
path: root/ops/modules/www/deploys.tvl.fyi.nix
blob: 9f59651d2b4fa93abd079d77170056cbc2c4cd1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ pkgs, ... }:

{
  imports = [
    ./base.nix
  ];

  config = {
    # Ensure the directory for deployment diffs exists.
    systemd.tmpfiles.rules = [
      "d /var/html/deploys.tvl.fyi 0755 nginx nginx -"
    ];

    services.nginx.virtualHosts."deploys.tvl.fyi" = {
      enableACME = true;
      forceSSL = true;
      root = "/var/html/deploys.tvl.fyi";
    };
  };
}