Enable proxyprotocol for nitter host
This commit is contained in:
parent
a4f3e68aac
commit
70eb8625bc
7 changed files with 29 additions and 52 deletions
|
@ -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\"";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue