stats-nixos-config/nginx.nix

18 lines
440 B
Nix
Raw Normal View History

2022-01-22 14:31:29 +01:00
{ config, lib, pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [ 80 ];
services.nginx = {
enable = true;
#logError = "/dev/null";
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."stats" = {
default = true;
locations."/".proxyPass = "http://unix:${config.services.grafana.socket}:/";
};
};
}