Skip to content

Instantly share code, notes, and snippets.

@tiye
Created December 9, 2023 15:17
Show Gist options
  • Save tiye/9ee6d7729be66aeee4b53649ac46d928 to your computer and use it in GitHub Desktop.
Save tiye/9ee6d7729be66aeee4b53649ac46d928 to your computer and use it in GitHub Desktop.
Caddy that serves /ws as WebSockets and others from static files
pumila.my.domain {
# Websockets, if headers match
handle /ws {
reverse_proxy localhost:11011
}
handle /* {
root * /web-assets/pumila/
file_server
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment