From ffb27bfd932566d342862385f207d05f55961400 Mon Sep 17 00:00:00 2001 From: Teajey <21069848+Teajey@users.noreply.github.com> Date: Thu, 23 May 2024 00:41:40 +1200 Subject: [PATCH] fix: share link --- env/env.go | 4 ++-- templates/home.gotmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/env/env.go b/env/env.go index d3c1700..e56dc12 100644 --- a/env/env.go +++ b/env/env.go @@ -15,11 +15,11 @@ func GuaranteeEnv(key string) (variable string) { } var JwtSecret = GuaranteeEnv("LISHWIST_JWT_SECRET") -var HostDomain = GuaranteeEnv("LISHWIST_HOST_DOMAIN") +var HostRootUrl = GuaranteeEnv("LISHWIST_HOST_ROOT_URL") var HostPort = os.Getenv("LISHWIST_HOST_PORT") var ServePort = GuaranteeEnv("LISHWIST_SERVE_PORT") var HostUrl = func() *url.URL { - rawUrl := "http://" + HostDomain + rawUrl := HostRootUrl if HostPort != "" { rawUrl += ":" + HostPort } diff --git a/templates/home.gotmpl b/templates/home.gotmpl index 66a85e4..fcf35d5 100644 --- a/templates/home.gotmpl +++ b/templates/home.gotmpl @@ -2,7 +2,7 @@