website/internal/env
Russ Cox b110cf7979 cmd/golangorg: add blog to valid hosts
Also hard-code EnforceHosts behavior.
It was only optional to enable the old tip.golang.org server,
but that code is dead or at least no longer pointed to by DNS.

Hard-coding the EnforceHosts behavior makes for fewer
prod-only test failures.

Change-Id: Ib958b3f088c8175e67708efcd07426b9628b207b
Reviewed-on: https://go-review.googlesource.com/c/website/+/343311
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
2021-08-18 20:07:38 +00:00
..
env.go cmd/golangorg: add blog to valid hosts 2021-08-18 20:07:38 +00:00