Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kue UI (Express) parallel to Hapi.JS API-Server

I want to use the UI from Kue (https://github.com/Automattic/kue) parallel to my Hapi.js Application.

The Kui UI is build with Express.

Hapi and Express are listening on port 80 on my heroku dyno.

How can I do that? Can someone give me an example?

like image 317
tiefenb Avatar asked Feb 06 '26 19:02

tiefenb


1 Answers

The post is lacking a bit of details but I think I understand what you want. I will assume that both services run on the same IP@ so you obviously can't have them both on port 80.

I think a possible solution is to start kue on another port (say 4080) and have hapi.js proxy the kue routes to the kue server.

The relevant document section is here (look for the proxy option). There is a sample here.

Hope I got your question right.

like image 142
tgo Avatar answered Feb 08 '26 14:02

tgo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!