about summary refs log tree commit diff
path: root/ops/modules/www/whitby.tvl.fyi.nix
blob: bcd7a76ec4e8e18d7ddff8346332f6c27e726eef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Redirect whitby.tvl.fyi to the machine configuration.

{
  imports = [
    ./base.nix
  ];

  config.services.nginx.virtualHosts."whitby.tvl.fyi" = {
    serverName = "whitby.tvl.fyi";
    serverAliases = [ "whitby.tvl.su" ];
    enableACME = true;

    extraConfig = ''
      return 302 https://at.tvl.fyi/?q=%2F%2Fops%2Fmachines%2Fwhitby;
    '';
  };
}