Compare commits
2 commits
6bd990c51b
...
05fc4b8e28
Author | SHA1 | Date | |
---|---|---|---|
Lillian Violet | 05fc4b8e28 | ||
Lillian Violet | c802a38b91 |
|
@ -63,7 +63,7 @@ in {
|
||||||
# Configure NGINX as a reverse proxy
|
# Configure NGINX as a reverse proxy
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = false;
|
||||||
|
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${server_name}" = {
|
"${server_name}" = {
|
||||||
|
@ -123,9 +123,10 @@ in {
|
||||||
add_header Access-Control-Allow-Origin "*";
|
add_header Access-Control-Allow-Origin "*";
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
locations."~ ^(/_matrix/client/unstable/org.matrix.msc3575/sync)" = {
|
locations."/_matrix/client/unstable/org.matrix.msc3575/sync" = {
|
||||||
proxyPass = "http://backend_conduit/client/unstable/org.matrix.msc3575/sync";
|
proxyPass = "http://backend_conduit/client/unstable/org.matrix.msc3575/sync";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
|
recommendedProxySettings = false;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
|
Loading…
Reference in a new issue