aboutsummaryrefslogtreecommitdiff
path: root/Caddyfile
diff options
context:
space:
mode:
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile19
1 files changed, 19 insertions, 0 deletions
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
+ }
+}