matrix: enable proxy protocol

This commit is contained in:
Sandro - 2024-03-14 19:03:05 +01:00
parent 626f7a1d38
commit 9dd6e499c4
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, libC, pkgs, ... }:
{ {
c3d2.deployment.server = "server10"; c3d2.deployment.server = "server10";
@ -85,6 +85,7 @@
virtualHosts."matrix.c3d2.de" = { virtualHosts."matrix.c3d2.de" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
listen = libC.defaultListen;
locations = { locations = {
"/".proxyPass = "http://127.0.0.1:8008"; "/".proxyPass = "http://127.0.0.1:8008";
"^~ /_synapse/admin/".return = "403"; "^~ /_synapse/admin/".return = "403";

View File

@ -103,8 +103,7 @@
"matrix.c3d2.de" "matrix.c3d2.de"
]; ];
proxyTo.host = hostRegistry.matrix.ip4; proxyTo.host = hostRegistry.matrix.ip4;
# TODO: enable in matrix proxyProtocol = true;
# proxyProtocol = true;
} { } {
hostNames = [ "mobilizon.c3d2.de" ]; hostNames = [ "mobilizon.c3d2.de" ];
proxyTo.host = hostRegistry.mobilizon.ip4; proxyTo.host = hostRegistry.mobilizon.ip4;