welp
This commit is contained in:
parent
f25bb319ae
commit
f1c3523374
2 changed files with 44 additions and 467 deletions
|
@ -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;";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue