Skip to content

rickpeyton/localhost_nginx_ssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published