Yes, I saw that one, indeed it looks useful (forward_auth). But I really want to do both things in one module - authenticating the request and reverse proxying to the grabbed upstream from my Subdomain → IP mapping.
But also based off on @matt’s reply in Dynamically set reverse_proxy upstreams from custom module
I am genuinely curious what is wrong with my setup, and what can I do in order to get the reverseproxy module working in the ServeHTTP
❯ curl https://localhost:8080
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)