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