the op has homeassistant running in a vm, not in a docker container
That was my understanding.
That's why the changes needed on the homeassist.subdomain.conf.
SWAG will proxy everything, as long as the LAN IP is reachable (even on the same host, VM or not)