Unix sockets :3

This commit is contained in:
Rory& 2024-07-20 10:29:19 +02:00
parent ccc0d8f184
commit f1737ab050

View file

@ -2,7 +2,7 @@
enableACME = false;
addSSL = false;
locations."/" = {
proxyPass = "http://localhost:8008";
proxyPass = "http://unix:/run/matrix-synapse/main-http.sock";
extraConfig = ''
if ($request_method = 'OPTIONS') {
more_set_headers 'Access-Control-Allow-Origin: *';
@ -27,7 +27,6 @@
return 200 '${
builtins.toJSON {
"m.homeserver".base_url = "https://matrix.litenet.tel";
"m.identity_server".base_url = "https://matrix.litenet.tel";
}
}';
'';