From 19e0006dac0af6444c50e2b3d4999407313da808 Mon Sep 17 00:00:00 2001 From: Matej Sychra Date: Sun, 19 Nov 2023 15:16:56 +0100 Subject: [PATCH] rebuild consile to incorporate fixed nignx config --- .circleci/config.yml | 18 +++++++++--------- lib/router.js | 5 +++++ services/console | 2 +- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index be19831b4..f1f011c68 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -388,15 +388,15 @@ workflows: - main - master - # - build-console-classic: - # context: - # - thinx-docker-repo - # - console - # filters: - # branches: - # only: - # - thinx-staging - # - master + - build-console-classic: + context: + - thinx-docker-repo + - console + filters: + branches: + only: + - thinx-staging + - master # - build-console-cloud: # context: diff --git a/lib/router.js b/lib/router.js index 9a6fffbdb..1071ff0bf 100644 --- a/lib/router.js +++ b/lib/router.js @@ -59,6 +59,11 @@ module.exports = function (app) { // Default content-type, may be overridden later by Util.responder and others res.header("Content-Type", "text/html; charset=utf-8"); + if (req.header.host !== app_config.public_url) { + console.log("[warning] host header mismatch, possible hacking attempt..."); + } + + // // JWT Key Authentication // diff --git a/services/console b/services/console index 33a62a3e7..8d8679152 160000 --- a/services/console +++ b/services/console @@ -1 +1 @@ -Subproject commit 33a62a3e7ed45f2084dbaa84d91b03777a38c43c +Subproject commit 8d8679152d20d64956cac1c287b9f3d5fce0979d