Created
August 22, 2023 12:14
-
-
Save rounakdatta/692c007271bd4e9aafb7c2853e5a434b to your computer and use it in GitHub Desktop.
No stress local proxying
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '127.0.0.1 my-project.localhost' | sudo tee -a /etc/hosts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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