Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 582 Bytes

local-https-with-caddy.md

File metadata and controls

33 lines (24 loc) · 582 Bytes

Local HTTPS with Caddy

Install Caddy.

Create a caddyfile:

myreactapp.caddy.localhost {
  reverse_proxy localhost:3000
}

Or:

{
  http_port 8800
  https_port 4444
}

rickandmorty.caddy.localhost:4444 {
  reverse_proxy localhost:4200
}

rickandmortyapi.caddy.localhost:4444 {
  reverse_proxy localhost:3004
}

Use caddy via commandline: caddy run