a291c8690a
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
25 lines
513 B
Nix
25 lines
513 B
Nix
{ 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}";
|
|
};
|
|
};
|
|
};
|
|
}
|