Skip to content

lptai/nginx-reverse-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run?

  • Install nginx
  • Start nginx with sudo nginx -p $(pwd) -c nginx.conf
  • By default, it listens to port 80 (that's why you need sudo for that)
  • All other paths will be forwarded to localhost:3000

nginx -v

sudo nginx -p pwd/ -c nginx.conf

sudo kill -QUIT cat nginx.pid

reloading

sudo kill -HUP cat nginx.pid

ps aux | grep nginx

generate ssl key

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout nginx-selfsigned.key -out nginx-selfsigned.crt

About

a simple reverse proxy with nginx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published