2021-04-12 17:59:51 +02:00
|
|
|
{ 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."/" = {
|
2022-11-06 19:51:46 +01:00
|
|
|
proxyPass = "http://localhost:${toString config.services.grafana.settings.server.http_port}";
|
2021-04-12 17:59:51 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|