This commit is contained in:
Schrottkatze 2023-02-19 02:27:09 +01:00
parent f25bb319ae
commit f1c3523374
2 changed files with 44 additions and 467 deletions

View file

@ -14,7 +14,7 @@
};
"wolke.schrottkatze.de" = {
group = "nginx";
keyType = "rsa2047";
keyType = "rsa2048";
};
"s10e.de" = {
group = "nginx";
@ -23,7 +23,7 @@
"synapse.schrottkatze.de" = {
group = "nginx";
keyType = "rsa2048";
}
};
};
};
@ -76,27 +76,36 @@
http2 = true;
listen = [
{
addr = "0.0.0.0";
port = 443;
ssl = true;
}
{
addr = "[::]";
port = 443;
ssl = true;
}
{
addr = "0.0.0.0";
port = 8448;
ssl = true;
}
{
addr = "[::]";
port = 8448;
ssl = true;
}
];
locations."~ ^(/_matrix|/_synapse/client)" {
locations."~ ^(/_matrix|/_synapse/client)" = {
proxyPass = "http://localhost:8008";
extraConfig = [
"proxy_pass http://localhost:8008;"
"proxy_set_header X-Forwarded-For $remote_addr;"
"proxy_set_header X-Forwarded-Proto $scheme;"
"proxy_set_header Host $host;"
"client_max_body_size 2G;"
];
extraConfig = ''
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
client_max_body_size 2G;
'';
};
extraConfig = [
"proxy_http_version 1.1;"
];
extraConfig = "proxy_http_version 1.1;";
};
};
};