BYOK Personal Data Server (PDS) written in Go
ipfs vow atproto pds go
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(server): properly use forwarded host

+3 -4
+3 -4
server/handle_well_known.go
··· 69 69 ctx := r.Context() 70 70 logger := s.logger.With("name", "handleAtprotoDid") 71 71 72 - host := r.Host 72 + // Use X-Forwarded-Host header if present (for reverse proxy setups), otherwise fall back to configured hostname 73 + host := r.Header.Get("X-Forwarded-Host") 73 74 if host == "" { 74 - helpers.InputError(w, new("Invalid handle.")) 75 - return 75 + host = s.config.Hostname 76 76 } 77 - 78 77 host = strings.Split(host, ":")[0] 79 78 host = strings.ToLower(strings.TrimSpace(host)) 80 79