summaryrefslogtreecommitdiffstats
path: root/.ship/Caddyfile
diff options
context:
space:
mode:
Diffstat (limited to '.ship/Caddyfile')
-rw-r--r--.ship/Caddyfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/.ship/Caddyfile b/.ship/Caddyfile
new file mode 100644
index 0000000..88ed6d3
--- /dev/null
+++ b/.ship/Caddyfile
@@ -0,0 +1,18 @@
1nostr-grpc.x.bdw.to {
2 # Route native gRPC to port 50051
3 @grpc {
4 header Content-Type application/grpc*
5 }
6 reverse_proxy @grpc localhost:50051 {
7 transport http {
8 versions h2c
9 }
10 }
11
12 # Everything else (Connect, WebSocket, HTML) to port 8006
13 reverse_proxy localhost:8006 {
14 # Enable WebSocket support
15 header_up Upgrade {http.request.header.Upgrade}
16 header_up Connection {http.request.header.Connection}
17 }
18}