My issue:
I have a wireguard VPS that I am trying to use to essentially create an intranet. There are a few servers I would like to run on my local machine (which stays connected to the VPS at all times via the wireguard tunnel. All VPS users access resources through wireguard.
Namely, I am running an audiobookshelf docker container on localhost on my local machine, but how can I expose access to this server to all other wireguard peers? I simply want the localhost of my machine to be visible to the VPS as if it were a local network. Any guidance or learning materials would be much appreciated. I’ve had a heck of a time trying to find documentation for this use-case. Possibly because I don’t know enough to know what to search.
How I encountered the problem:
Solutions I’ve tried:
Using proxy hosts / streams in NPM to reroute the localhost traffic from peer to server and then to a local domain (QLS.local)
Version of NGINX or NGINX adjacent software (e.g. NGINX Gateway Fabric):
NPM v2.14.0
Deployment environment:
Fedora client and ubuntu server
Minimal NGINX config to reproduce your issue (preferably running on https://tech-playground.com/playgrounds/nginx for ease of debugging, and if not as a code block): (Tip → Run nginx -T to print your entire NGINX config to your terminal.)
NGINX access/error log: (Tip → You can usually find the logs in the /var/log/nginx directory.)