summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-13 21:22:46 -0800
committerbndw <ben@bdw.to>2026-02-13 21:22:46 -0800
commit5229519878567652d11525367209645d51b35dfa (patch)
tree9adbf78aaff7eda06ab20b8274a6f2221b6b76dc
parent15f9c714a28a062a4ec3a916675dccba98749788 (diff)
fix: use port 443 for gRPC when behind reverse proxy
When using --public-url, the gRPC endpoint is accessed via the reverse proxy on standard HTTPS port 443, not the internal port 50051. Update display to show correct public-facing port.
-rw-r--r--cmd/relay/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/relay/main.go b/cmd/relay/main.go
index a928238..8f879b2 100644
--- a/cmd/relay/main.go
+++ b/cmd/relay/main.go
@@ -56,8 +56,8 @@ func main() {
56 // Set public URLs for index page 56 // Set public URLs for index page
57 var grpcDisplay, httpDisplay, wsDisplay string 57 var grpcDisplay, httpDisplay, wsDisplay string
58 if *publicURL != "" { 58 if *publicURL != "" {
59 // Use public URLs when behind reverse proxy 59 // Use public URLs when behind reverse proxy (port 443)
60 grpcDisplay = *publicURL + ":50051" // gRPC typically on different port 60 grpcDisplay = *publicURL + ":443"
61 httpDisplay = "https://" + *publicURL 61 httpDisplay = "https://" + *publicURL
62 wsDisplay = "wss://" + *publicURL 62 wsDisplay = "wss://" + *publicURL
63 } else { 63 } else {