diff options
author | curly <curlybryce@protonmail.com> | 2023-02-28 15:27:00 -0700 |
---|---|---|
committer | curly <curlybryce@protonmail.com> | 2023-02-28 15:27:00 -0700 |
commit | a4e02bd4c00e3456594eda5c2fc55b0900a4cec9 (patch) | |
tree | 35602d68d91a77439ef9fc654cb7c4a0ebd0d1de /Caddyfile | |
parent | 1f03e7bc160a63d4d57c21bf9ec60e2cd46a382a (diff) | |
download | rocket_test_ui-a4e02bd4c00e3456594eda5c2fc55b0900a4cec9.tar.gz rocket_test_ui-a4e02bd4c00e3456594eda5c2fc55b0900a4cec9.tar.bz2 rocket_test_ui-a4e02bd4c00e3456594eda5c2fc55b0900a4cec9.zip |
use wss and include caddyfile
Diffstat (limited to 'Caddyfile')
-rw-r--r-- | Caddyfile | 19 |
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 + } +} |