Found making the Go SDK installable: go get git.novox.be/novox/mesh-sdk/go is refused because Gitea's go-import tag names http://git.novox.be/… — Gitea's ROOT_URL is https, but 1.27 derives public URLs from the request, and the route proxy (httputil.NewSingleHostReverseProxy) forwards only X-Forwarded-For. Verified: with X-Forwarded-Proto: https Gitea answers https://…. The proxy now uses Rewrite with SetXForwarded() (Proto, Host, For from the request it received) and keeps the inbound Host header as before. Every backend that writes its own absolute URLs benefits. Test added.
Found making the Go SDK installable: `go get git.novox.be/novox/mesh-sdk/go` is refused because Gitea's go-import tag names `http://git.novox.be/…` — Gitea's ROOT_URL is https, but 1.27 derives public URLs from the request, and the route proxy (`httputil.NewSingleHostReverseProxy`) forwards only `X-Forwarded-For`. Verified: with `X-Forwarded-Proto: https` Gitea answers `https://…`. The proxy now uses `Rewrite` with `SetXForwarded()` (Proto, Host, For from the request it received) and keeps the inbound Host header as before. Every backend that writes its own absolute URLs benefits. Test added.
NewSingleHostReverseProxy sets only X-Forwarded-For, so a backend that writes its own addresses saw
the plain hop from the proxy: Gitea's Go import tag named an http clone URL and go get refused the
SDK's module path. The proxy now sets X-Forwarded-Proto, -Host and -For from the request it received,
and keeps the Host header as it was.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Found making the Go SDK installable:
go get git.novox.be/novox/mesh-sdk/gois refused because Gitea's go-import tag nameshttp://git.novox.be/…— Gitea's ROOT_URL is https, but 1.27 derives public URLs from the request, and the route proxy (httputil.NewSingleHostReverseProxy) forwards onlyX-Forwarded-For. Verified: withX-Forwarded-Proto: httpsGitea answershttps://…. The proxy now usesRewritewithSetXForwarded()(Proto, Host, For from the request it received) and keeps the inbound Host header as before. Every backend that writes its own absolute URLs benefits. Test added.