Enable proxyprotocol for nitter host

This commit is contained in:
fi 2023-08-05 06:49:48 +02:00
parent a4f3e68aac
commit 70eb8625bc
Signed by: fi
SSH key fingerprint: SHA256:d+6fQoDPMbSFK95zRVflRKZLRKF4cPSQb7VIxYkhFsA
7 changed files with 29 additions and 52 deletions

View file

@ -1,26 +0,0 @@
{ ... }:
{
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\"";
};
};
}

View file

@ -3,7 +3,6 @@
imports = [
./acme-challenge.nix
./anisync.grzb.de.nix
./birdsite.nekover.se.nix
./element.nekover.se.nix
./gameserver.grzb.de.nix
./git.grzb.de.nix