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
If you already have nginx installed you can skip these steps
- Ensure you have brew installed
- Run
brew install nginx
to install nginx using brew
- Configure ssl, create 3 file in the
./ssl
folder, look at the.example
files for help these are the certificate nginx will usessl/cert.pem
ssl/privkey.pem
ssl/client_root.crt
- 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
- 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