Skip to content

Instantly share code, notes, and snippets.

@wangjiezhe
Last active September 19, 2024 10:24
Show Gist options
  • Save wangjiezhe/773192263851d4f6d2fb3353121060e2 to your computer and use it in GitHub Desktop.
Save wangjiezhe/773192263851d4f6d2fb3353121060e2 to your computer and use it in GitHub Desktop.
Reverse proxy for Google Map using caddy.
geo.domain.ltd {
# cert setting missing
handle /vt/* {
reverse_proxy mt0.google.com mt1.google.com mt2.google.com mt3.google.com {
header_up Host {upstream_hostport}
}
}
handle {
respond 404
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment