fix synapse
This commit is contained in:
parent
d131a02623
commit
4a103ef997
@ -106,12 +106,10 @@ in {
|
|||||||
|
|
||||||
services.nginx.virtualHosts = let
|
services.nginx.virtualHosts = let
|
||||||
proxySettings = ''
|
proxySettings = ''
|
||||||
|
client_max_body_size 50M;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
|
||||||
proxy_set_header X-Forwarded-Server $host;
|
|
||||||
'';
|
'';
|
||||||
default = {
|
default = {
|
||||||
useACMEHost = cert-fqdn;
|
useACMEHost = cert-fqdn;
|
||||||
@ -128,11 +126,15 @@ in {
|
|||||||
addr = "0.0.0.0";
|
addr = "0.0.0.0";
|
||||||
port = 443;
|
port = 443;
|
||||||
ssl = true;
|
ssl = true;
|
||||||
|
} {
|
||||||
|
addr = "[::]";
|
||||||
|
port = 443;
|
||||||
|
ssl = true;
|
||||||
}];
|
}];
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://192.168.122.11:8081";
|
proxyPass = "http://192.168.122.11:8081";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 50M;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
'' + proxySettings;
|
'' + proxySettings;
|
||||||
};
|
};
|
||||||
} // default;
|
} // default;
|
||||||
@ -142,12 +144,14 @@ in {
|
|||||||
addr = "0.0.0.0";
|
addr = "0.0.0.0";
|
||||||
port = 8448;
|
port = 8448;
|
||||||
ssl = true;
|
ssl = true;
|
||||||
|
} {
|
||||||
|
addr = "[::]";
|
||||||
|
port = 8448;
|
||||||
|
ssl = true;
|
||||||
}];
|
}];
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://192.168.122.11:8448";
|
proxyPass = "http://192.168.122.11:8448";
|
||||||
extraConfig = ''
|
extraConfig = proxySettings;
|
||||||
client_max_body_size 50M;
|
|
||||||
'' + proxySettings;
|
|
||||||
};
|
};
|
||||||
} // default;
|
} // default;
|
||||||
};
|
};
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user