Skip to content

WilliamBergamin/simple-reverse-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-reverse-proxy

This project is a simple nginx server set up as a reverse proxy to perform ssl cert for a project deployed locally.

NOTE this project was only tested on mac

how to use

Install nginx

If you already have nginx installed you can skip these steps

  1. Ensure you have brew installed
  2. Run brew install nginx to install nginx using brew

Run proxy

  1. Configure ssl, create 3 file in the ./ssl folder, look at the .example files for help these are the certificate nginx will use
    1. ssl/cert.pem
    2. ssl/privkey.pem
    3. ssl/client_root.crt
  2. Run the following command to start the nginx server, it listens to default http port 443
    bash ./start <exposed_port> 
    
    # Example my project is running on port 3000
    bash ./start 3000
  3. A config file will be generate ./tmp/nginx.conf this is the file nginx uses to configure itself as a reverse proxy able to perform ssl cert

About

simple reverse proxy to allow ssl cert for local projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages