Skip to content

Instantly share code, notes, and snippets.

@rodrigo-brito
Created October 18, 2018 11:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rodrigo-brito/716f9dab3c269913d58b7e524f80b20d to your computer and use it in GitHub Desktop.
Save rodrigo-brito/716f9dab3c269913d58b7e524f80b20d to your computer and use it in GitHub Desktop.
Caddy proxy with HTTPS - Mkcert
id.cifraclub.com.br {
log stdout
# Mkcert - https://github.com/FiloSottile/mkcert
tls ./yourwebsite.com.br.pem ./yourwebsite.com.br-key.pem
proxy / https://yourwebsite.com {
transparent
header_upstream X-Marotagem true
header_upstream Host "yourwebsite.com.br"
}
proxy /api 127.0.0.1:5003 {
transparent
header_upstream X-Marotagem true
header_upstream Host "yourwebsite.com.br"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment