From f5d33c57b2c5578578d4e5f79815b079085535b5 Mon Sep 17 00:00:00 2001 From: krueger_m Date: Mon, 4 May 2020 10:12:04 +0200 Subject: [PATCH 1/5] Make project useable behind ingress using a context path, i.e. https://server:port/contextPath/ --- lib/server.js | 2 +- public/index.html | 6 +++--- public/webhooks.html | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/server.js b/lib/server.js index 4de3d23..457f9d7 100644 --- a/lib/server.js +++ b/lib/server.js @@ -49,7 +49,7 @@ module.exports = (testRoute) => { .toString('base64') .replace(/[+/=]+/g, '') - res.redirect(307, `${protocol}://${host}/${channel}`) + res.redirect(307, `${channel}`) }) app.get('/:channel', (req, res, next) => { diff --git a/public/index.html b/public/index.html index af84ebb..52f8c57 100644 --- a/public/index.html +++ b/public/index.html @@ -5,8 +5,8 @@ smee.io | Webhook payload delivery service - - + +
@@ -19,7 +19,7 @@

smee.io

Webhook payload delivery service

Receives payloads then sends them to your locally running application.

- Start a new channel + Start a new channel
diff --git a/public/webhooks.html b/public/webhooks.html index 690882d..cd54542 100644 --- a/public/webhooks.html +++ b/public/webhooks.html @@ -5,8 +5,8 @@ smee.io | Webhook deliveries - - + +
- + +