Skip to content

Instantly share code, notes, and snippets.

@tshipenchko
Created January 1, 2024 12:03
Show Gist options
  • Save tshipenchko/78c17657836d3b6407cda66ba958dd5a to your computer and use it in GitHub Desktop.
Save tshipenchko/78c17657836d3b6407cda66ba958dd5a to your computer and use it in GitHub Desktop.
LFH caddy
*.8197cb8c.nip.io {
tls internal
@portNum header_regexp "Host" ([0-9]+)\.8197cb8c\.nip\.io
handle @portNum {
reverse_proxy localhost:{http.regexp.1}
}
handle {
respond "bad port"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment