about summary refs log blame commit diff
path: root/ops/modules/www/status.tvl.su.nix
blob: 7079c602604e9b3e6dfc601ccab083690e52b219 (plain) (tree)



















                                                                    
                                                                                                     



        
{ 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.settings.server.http_port}";
      };
    };
  };
}