We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64b435c commit df414a8Copy full SHA for df414a8
datastore.go
@@ -175,6 +175,7 @@ type Settings struct {
175
CheckCSRFViaReferrer bool
176
EmailFromName string
177
EmailFromEmail string
178
+ IsSiteBound bool
179
}
180
181
func loadSettings() *Settings {
@@ -221,7 +222,7 @@ func loadSettings() *Settings {
221
222
if s.IsSecured {
223
s.Proto = "https://"
224
-
225
+ s.IsSiteBound = strings.ToLower(os.Getenv("IS_SITE_BOUND")) == "true"
226
s.WebsiteBaseURL = os.Getenv("WEBSITE_BASE_URL")
227
if s.WebsiteBaseURL == "" {
228
s.WebsiteBaseURL = s.Proto + s.CanonicalURL + "/"
0 commit comments