Skip to content

Instantly share code, notes, and snippets.

@lemonlatte
Created December 11, 2023 01:13
Show Gist options
  • Save lemonlatte/8c985bb0a9914cfc199cef402de1dd36 to your computer and use it in GitHub Desktop.
Save lemonlatte/8c985bb0a9914cfc199cef402de1dd36 to your computer and use it in GitHub Desktop.
Simple Caddyfile
https://localhost:8888 {
tls /usr/local/etc/ssl/localhost.pem /usr/local/etc/ssl/localhost-key.pem
handle_path /api* {
rewrite /api/ /
reverse_proxy localhost:8000
}
reverse_proxy /* localhost:8080
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment