nodejs reverse proxy for libvirt domains
Problem: I want an easy way to access my vm's http server, but I don't want to setup a reverse proxy manually each time one goes up/down.
Solution: A "libvirt" aware reverse proxy
Use libvirt's hook system to restart the proxy and reload the routing table. By default the routing table is <vm name>.<hostname>
-> <vm name>
.
ps: Don't forget to update your host's resolv.conf
to use itself as a nameserver:
nameservers 192.168.122.1
Written by Daniel Tralamazza
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#