about summary refs log blame commit diff
path: root/ops/modules/www/deploys.tvl.fyi.nix
blob: 8ae06f2fff8ea3de5c9549ce2987428338172e6b (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                       
                                                           








                                                     
{ pkgs, ... }:

{
  imports = [
    ./base.nix
  ];

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

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