Proxy configuration to KVM

You can check this thread where a similar setup is discussed: KVM behind a reverse proxy

We also provide an open-source project you can refer to: glkvm-cloud on GitHub

Both may help you.