mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
Fix Caddyfile for WebSocket
This commit is contained in:
16
README.md
16
README.md
@@ -134,6 +134,21 @@ cabinet.yourdomain.com {
|
|||||||
uri strip_prefix /api
|
uri strip_prefix /api
|
||||||
reverse_proxy backend_bot:8080
|
reverse_proxy backend_bot:8080
|
||||||
}
|
}
|
||||||
|
@websockets {
|
||||||
|
header_regexp Connection *Upgrade*
|
||||||
|
header Upgrade websocket
|
||||||
|
}
|
||||||
|
|
||||||
|
# WebSocket соединения
|
||||||
|
handle /cabinet/ws {
|
||||||
|
uri strip_prefix /api
|
||||||
|
reverse_proxy backend_bot:8080 {
|
||||||
|
transport http {
|
||||||
|
read_timeout 0
|
||||||
|
write_timeout 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Статические файлы
|
# Статические файлы
|
||||||
handle {
|
handle {
|
||||||
@@ -141,6 +156,7 @@ cabinet.yourdomain.com {
|
|||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
docker-compose.yml для Caddy:
|
docker-compose.yml для Caddy:
|
||||||
|
|||||||
Reference in New Issue
Block a user