Welcome! Log In Create A New Profile

Advanced

Using nginx in front of my app

January 01, 2021 08:46AM
Hi,

I would like to not bother with the networking side of my project.
Hence I will use nginx to receive https/websocket requests and serve static html (vuejs) files.

But, sometimes, clients will call my API for more complex actions (database...) and I would like nginx to be a proxy to simplify my application.

client sends encrypted websocket
> nginx receive it and decrypts it
> nginx transfers the http content using UDP (for simplicity) to my local c socket application
> my app does what it does best and sends back the response to nginx
> nginx sends back the valid encrypted packet to the client

So I need nginx as a https proxy but switching to UDP protocol and remembering how to answer the client after getting the response from my app.

How may I do that?

Thanks
Subject Author Posted

Using nginx in front of my app

Decor January 01, 2021 08:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready