From 0a04e3eccc7a8640bb7447a99485a03e162cf47e Mon Sep 17 00:00:00 2001 From: diazmateus <25601144+diazmateus@users.noreply.github.com> Date: Thu, 30 May 2024 17:54:32 -0300 Subject: [PATCH] Fix HTTPS issue by using APP_PROTOCOL in axios baseURL This change fixes a compatibility issue with HTTPS when using the Cloudflare Tunnel to expose the Umbrel instance. The issue occurred because axios was configured with a fixed HTTP protocol. By modifying the configuration to use the protocol defined in the APP_PROTOCOL constant, all requests are now correctly made with HTTP or HTTPS as configured, preventing the browser from blocking requests when HTTPS is in use. --- containers/app-proxy/utils/manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containers/app-proxy/utils/manager.js b/containers/app-proxy/utils/manager.js index cd94f1c27b..10483c418d 100644 --- a/containers/app-proxy/utils/manager.js +++ b/containers/app-proxy/utils/manager.js @@ -4,7 +4,7 @@ const package = require('../package.json'); const CONSTANTS = require('./const.js'); const axiosInstance = axios.create({ - baseURL: `http://${CONSTANTS.MANAGER_IP}:${CONSTANTS.MANAGER_PORT}`, + baseURL: `${CONSTANTS.APP_PROTOCOL}://${CONSTANTS.MANAGER_IP}:${CONSTANTS.MANAGER_PORT}`, headers: { common: { "User-Agent": `${package.name}/${package.version}` @@ -27,4 +27,4 @@ const account = { module.exports = { account -}; \ No newline at end of file +};