Skip to content

Commit df414a8

Browse files
committed
SiteID()
1 parent 64b435c commit df414a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datastore.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ type Settings struct {
175175
CheckCSRFViaReferrer bool
176176
EmailFromName string
177177
EmailFromEmail string
178+
IsSiteBound bool
178179
}
179180

180181
func loadSettings() *Settings {
@@ -221,7 +222,7 @@ func loadSettings() *Settings {
221222
if s.IsSecured {
222223
s.Proto = "https://"
223224
}
224-
225+
s.IsSiteBound = strings.ToLower(os.Getenv("IS_SITE_BOUND")) == "true"
225226
s.WebsiteBaseURL = os.Getenv("WEBSITE_BASE_URL")
226227
if s.WebsiteBaseURL == "" {
227228
s.WebsiteBaseURL = s.Proto + s.CanonicalURL + "/"

0 commit comments

Comments
 (0)