From f33b6de157423ba9ce5778167e8e8a31e2d06b19 Mon Sep 17 00:00:00 2001 From: Chongyi Zheng Date: Thu, 30 Jun 2022 20:49:48 -0400 Subject: [PATCH] Support X-Forwarded-Host header --- server/uptime-kuma-server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/uptime-kuma-server.js b/server/uptime-kuma-server.js index 605ba533..991c7ba2 100644 --- a/server/uptime-kuma-server.js +++ b/server/uptime-kuma-server.js @@ -49,6 +49,7 @@ class UptimeKumaServer { log.info("server", "Creating express and socket.io instance"); this.app = express(); + this.app.enable("trust proxy"); if (sslKey && sslCert) { log.info("server", "Server Type: HTTPS");