Skip to content

Instantly share code, notes, and snippets.

@rounakdatta
Created August 22, 2023 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rounakdatta/692c007271bd4e9aafb7c2853e5a434b to your computer and use it in GitHub Desktop.
Save rounakdatta/692c007271bd4e9aafb7c2853e5a434b to your computer and use it in GitHub Desktop.
No stress local proxying
echo '127.0.0.1 my-project.localhost' | sudo tee -a /etc/hosts
events {
worker_connections 128;
}
http {
server {
listen 0.0.0.0:80;
server_name my-project.localhost;
location / {
proxy_pass http://localhost:3000;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment