Created
December 9, 2023 15:17
-
-
Save tiye/9ee6d7729be66aeee4b53649ac46d928 to your computer and use it in GitHub Desktop.
Caddy that serves /ws as WebSockets and others from static files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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