From 46b11cf4c20104d58d72d1c8d48c4177874f5a75 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 20 Jun 2024 17:24:03 +0300 Subject: [PATCH] Office : Use container Rabbitmq. --- container/Office.nix | 2 ++ container/Rabbitmq.nix | 3 +++ container/proxy/host/Office.nix | 1 + 3 files changed, 6 insertions(+) diff --git a/container/Office.nix b/container/Office.nix index 76cb1616..f205a92f 100644 --- a/container/Office.nix +++ b/container/Office.nix @@ -31,6 +31,8 @@ in { jwtSecretFile = "/var/lib/onlyoffice/jwt"; + rabbitmqUrl = "amqp://guest:guest@${container.config.rabbitmq.address}:${toString container.config.rabbitmq.port}"; + examplePort = cfg.port; enableExampleServer = true; }; diff --git a/container/Rabbitmq.nix b/container/Rabbitmq.nix index d3418e2e..99e556d2 100644 --- a/container/Rabbitmq.nix +++ b/container/Rabbitmq.nix @@ -19,6 +19,9 @@ in { listenAddress = cfg.address; port = cfg.port; dataDir = "/var/lib/rabbitmq"; + configItems = { + "loopback_users" = "none"; + }; }; }; }; diff --git a/container/proxy/host/Office.nix b/container/proxy/host/Office.nix index b97c71b1..290c70a6 100644 --- a/container/proxy/host/Office.nix +++ b/container/proxy/host/Office.nix @@ -11,6 +11,7 @@ in { # allow ${container.localAccess}; # allow ${container.config.vpn.address}; # deny all; + add_header X-Forwarded-Proto https; proxy_pass http://''$${name}$request_uri; }