summaryrefslogtreecommitdiffstats
path: root/.ship/Caddyfile
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-14 09:58:28 -0800
committerbndw <ben@bdw.to>2026-02-14 09:58:28 -0800
commitd30459513ec44ab298fafd1bfe0edc08d6ab62e4 (patch)
tree1e4442f940c11544cd60b6bf72f2038338da67ce /.ship/Caddyfile
parentfe3708eaf495613cc6e2340b821795f25811d6ed (diff)
feat: rename allowed_pubkeys to allowed_npubs with normalization
- Config now accepts npub format only (human-readable) - Automatically converts npubs to hex pubkeys at load time - Updated InterceptorOptions.AllowedPubkeys -> AllowedNpubs - Added validation to reject hex format in config (npub only) - Updated documentation to clarify npub-only config - Added comprehensive tests for npub normalization Config is for humans (npub), internal code uses hex pubkeys.
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}