about summary refs log tree commit diff
path: root/ops/modules/www/status.tvl.su.nix
blob: 2bb6093c14725c11fc1af07a3f96b382cdc0e6f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ config, ... }:

{
  imports = [
    ./base.nix
  ];

  config = {
    services.nginx.virtualHosts."status-fyi" = {
      serverName = "status.tvl.fyi";
      enableACME = true;
      extraConfig = "return 302 https://status.tvl.su$request_uri;";
    };

    services.nginx.virtualHosts.grafana = {
      serverName = "status.tvl.su";
      enableACME = true;
      forceSSL = true;

      locations."/" = {
        proxyPass = "http://localhost:${toString config.services.grafana.port}";
      };
    };
  };
}