{ config, ... }: { services.nginx = { enable = true; virtualHosts = { ${config.services.grafana.settings.server.domain} = { forceSSL = true; enableACME = true; listen = [ { addr = "0.0.0.0"; port = 80; } { addr = "0.0.0.0"; port = 443; ssl = true; } ]; locations."/" = { proxyPass = "http://unix:/run/anubis/anubis-nekomesh.sock"; proxyWebsockets = true; }; }; }; }; }