Skip to content

asura6/dev-https-nginx-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dev-https-nginx-proxy

If you just want a simple localhost https reverse proxy for your development environment. Not tested for Windows or Mac.

! Valid until Sat, 13 May 2023

Is this safe?

No. By trusting the supplied root CA you are trusting that I have not signed any malicious domains using it. I'll tell you that I have not but I still recommend that you to create your own root CA and sign your own certificates. You can find instructions on how to do so here:

https://risaksson.com/post/10/2022-05-13/HTTPS-enabled-development-environments

Dependencies

  • docker
  • docker-compose

Configuration

Change the port number in conf.d/localhost.conf

proxy_pass http://host.docker.internal:3000;

from 3000 to your required port.

host.docker.internal might have some other alias for non-Linux OS.

Run

Run with docker-compose as

docker-compose up

Read nginx stdout using

docker-compose logs

Trust CA

Firefox

Settings > Privacy & Security > Certificates: View Certificates > Import... > certs/devCA.pem

Linux system-wide using trust

sudo trust anchor certs/devCA.pem

Remove the certificate using

sudo trust anchor --remove certs/devCA.pem

Other OS/application

TBD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published