blob: 88ed6d3293a6b37cd673ae73a16a0f98690f5bb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
nostr-grpc.x.bdw.to {
# Route native gRPC to port 50051
@grpc {
header Content-Type application/grpc*
}
reverse_proxy @grpc localhost:50051 {
transport http {
versions h2c
}
}
# Everything else (Connect, WebSocket, HTML) to port 8006
reverse_proxy localhost:8006 {
# Enable WebSocket support
header_up Upgrade {http.request.header.Upgrade}
header_up Connection {http.request.header.Connection}
}
}
|