{ ... }: { services.nginx.virtualHosts."birdsite.nekover.se" = { forceSSL = true; enableACME = true; listen = [ { addr = "localhost"; port = 1234; } # workaround for enableACME check { addr = "localhost"; port = 8443; ssl = true; proxyProtocol = true; } ]; locations."/" = { proxyPass = "http://nitter.vs.grzb.de:8080"; proxyWebsockets = true; }; locations."/robots.txt" = { return = "200 \"User-agent: *\\nDisallow: /\\n\""; }; }; }