feat: Caddy reverse proxy

chore: clean up README
This commit is contained in:
Paul Makles
2023-02-05 12:35:49 +00:00
parent 0e751b3d7e
commit 4dcde911e9
4 changed files with 134 additions and 83 deletions

28
Caddyfile Normal file
View File

@@ -0,0 +1,28 @@
{$REVOLT_APP_URL} {
route /api* {
uri strip_prefix /api
reverse_proxy http://api:8000
}
route /ws {
@upgrade {
header Connection *Upgrade*
header Upgrade websocket
}
uri strip_prefix /ws
reverse_proxy @upgrade http://events:9000
}
route /autumn* {
uri strip_prefix /autumn
reverse_proxy http://autumn:3000
}
route /january* {
uri strip_prefix /january
reverse_proxy http://january:7000
}
reverse_proxy http://web:5000
}