There are even solutions that automate a lot of the configuration for such a setup. I’m using Pangolin for example:github.com/fosrl/pangolin
But you could set up something like this manually if you want more flexibility (pangolin is based on traefic rather than Nginx)
chrash0@lemmy.world 1 day ago
the key is just an offsite machine with a stable IP plus a VPN. that way you can route all public traffic to that stable IP and send it where it needs to go regardless of its physical destination.