fix(docker): reverse proxy to host service in Caddyfile
This commit is contained in:
+2
-2
@@ -6,12 +6,12 @@
|
|||||||
:80 {
|
:80 {
|
||||||
# API routes
|
# API routes
|
||||||
handle_path /api/* {
|
handle_path /api/* {
|
||||||
reverse_proxy app:8080
|
reverse_proxy 172.18.0.1:8080
|
||||||
}
|
}
|
||||||
|
|
||||||
# WebSocket gateway
|
# WebSocket gateway
|
||||||
handle /ws {
|
handle /ws {
|
||||||
reverse_proxy app:8080 {
|
reverse_proxy 172.18.0.1:8080 {
|
||||||
header_up Connection {>Connection}
|
header_up Connection {>Connection}
|
||||||
header_up Upgrade {>Upgrade}
|
header_up Upgrade {>Upgrade}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user