From d3c174f62366c07a89d03f8ce3fce0f9d95bfea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Sun, 25 Jan 2026 03:33:28 +0100 Subject: [PATCH] Fix public share URLs to use request host instead of hardcoded www.b0esche.cloud --- go_cloud/internal/http/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go_cloud/internal/http/routes.go b/go_cloud/internal/http/routes.go index 3a4f132..78d6ca2 100644 --- a/go_cloud/internal/http/routes.go +++ b/go_cloud/internal/http/routes.go @@ -2943,7 +2943,7 @@ func publicFileShareHandler(w http.ResponseWriter, r *http.Request, db *database } else if r.TLS == nil { scheme = "http" } - host := "www.b0esche.cloud" + host := r.Host downloadPath := fmt.Sprintf("%s://%s/public/share/%s/download?token=%s", scheme, host, token, url.QueryEscape(viewerToken)) viewPath := fmt.Sprintf("%s://%s/public/share/%s/view?token=%s", scheme, host, token, url.QueryEscape(viewerToken))