Keep alive connections through a proxy
reddit.com·1d·
Discuss: r/rust
Flag this post

So I have a project that runs on docker containers. I want to host a cloud storage thing on my website. There are 2 docker containers, one running Nginx, and one running my Rust backend. Nginx just serves the static files but also acts as a proxy when the path is /api and sends all requests to my Rust backend. I use the Nginx proxt because for me it is easier to handle HTTPS for just one service than to do it for all.

To authenticate for the cloud storage I just want the client to send the auth token in the first request over their connection and then my backend would successfully authenticate them and continue on reusing this TCP connection or just close the connection if authentication fails. This is so I dont have to auth on every request.

But since the connection is routed thr…

Similar Posts

Loading similar posts...