By lxhao403
Hi,
I’m developing a NextJS web app and I want to setup a dev env such that there’s always a up-to-date application reading from the github repo.
However, since it’s the dev branch, I want to it only be accessed if the request is ona VPN.
My plan
I imagine i can do some IP check in NextJS? but wondering if there’s more elegant solution like setup the firewall on 2)'s droplet (I guess I cannot just deploy it through the App product)
Wondering if anyone did similar and can offer some input. Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You can use a mixture of VPN and Firewall configurations to restrict access to your DEV environment.
In the VPN setup, you can use the VPN server’s IP address to set rules in the Firewall configuration. For the firewall, you can block all incoming traffic except that coming from your VPN’s IP address. This way, your applications can only be accessed through the VPN.
You can check our Firewall documentation
https://www.digitalocean.com/docs/networking/firewalls/how-to/configure-rules/
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.