From a4e02bd4c00e3456594eda5c2fc55b0900a4cec9 Mon Sep 17 00:00:00 2001 From: curly Date: Tue, 28 Feb 2023 15:27:00 -0700 Subject: use wss and include caddyfile --- Caddyfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Caddyfile (limited to 'Caddyfile') diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..ac42b03 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,19 @@ +http://127.0.0.1, https://localhost { + file_server /* { + root build/ + } + + reverse_proxy /api* { + to http://localhost:8000 + } + + reverse_proxy /api/ws { + to 127.0.0.1:8001 + } +} + +ws://localhost { + reverse_proxy * { + to localhost:8001 + } +} -- cgit v1.2.3