Having encountered the very same problem, I ended putting in place a “poor-man’s” solution that’s easier to reverse-proxy.