Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 731 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 731 Bytes

Easy Local SSL for Rails Development

The build.sh script uses the included Dockerfile to build off of the official nginx Docker image, install openssl, create a self-signed certificate, and overwrite the default nginx.conf with the nginx.conf in this repo.

The modified nginx.conf references the self-signed cert and key, answers all traffic on port 443 and forwards that traffic to port 3000 via http://host.docker.internal.

The run.sh script maps host port 443 to port 443 in the container so that any HTTPS request to localhost will be answered by your running nginx container.

Getting Started

Build it

  ./build.sh

Run it

  ./run.sh

Start your app on port 3000