Skip to content

Instantly share code, notes, and snippets.

@groob
Created August 30, 2016 20:58
Show Gist options
  • Save groob/5bdd0de5e075d72ecdcaef440ae6195a to your computer and use it in GitHub Desktop.
Save groob/5bdd0de5e075d72ecdcaef440ae6195a to your computer and use it in GitHub Desktop.
I have a bunch of projects running on localhost(different ports). Here's a few, and a simple Caddyfile(caddy means automatic free https) proxies requests to those backends. Easy, cheap.
https://elmvids.groob.io:443 {
log stdout
prometheus
proxy / localhost:4001
tls {
max_certs 10
}
}
https://groob.io:443 {
log stdout
prometheus
proxy / localhost:8000
tls {
max_certs 10
}
}
https://micromdm.io:443 {
log stdout
prometheus
proxy / localhost:8002
tls {
max_certs 10
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment