This commit is contained in:
mjallen18
2025-11-16 19:10:06 -06:00
parent 0e93ea159f
commit 2a77d233f9
7 changed files with 83 additions and 102 deletions

View File

@@ -119,13 +119,6 @@ let
};
};
bindMounts = {
"/var/lib/matrix-synapse" = {
hostPath = cfg.dataDir;
isReadOnly = false;
};
};
# Create reverse proxy configuration using mkReverseProxy
reverseProxyConfig = lib.${namespace}.mkReverseProxy {
name = "matrix";
@@ -134,16 +127,6 @@ let
middlewares = cfg.reverseProxy.middlewares;
};
matrixContainer =
(lib.${namespace}.mkContainer {
name = "matrix-synapse";
localAddress = cfg.localAddress;
ports = [ cfg.port ];
bindMounts = bindMounts;
config = matrixConfig;
})
{ inherit lib; };
fullConfig = {
${namespace}.services.traefik = lib.mkIf cfg.reverseProxy.enable {
reverseProxies = [ reverseProxyConfig ];