mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-19 03:26:57 +00:00
Remove REDIRECT_BROKEN_DNS page and instead use "Failed Dependency" error
This commit is contained in:
parent
6c85b8a166
commit
fedfa8def4
3 changed files with 2 additions and 6 deletions
3
main.go
3
main.go
|
@ -44,9 +44,6 @@ var GiteaApiToken = envOr("GITEA_API_TOKEN", "")
|
|||
//go:embed 404.html
|
||||
var NotFoundPage []byte
|
||||
|
||||
// BrokenDNSPage will be shown (with a redirect) when trying to access a domain for which no DNS CNAME record exists.
|
||||
var BrokenDNSPage = envOr("REDIRECT_BROKEN_DNS", "https://docs.codeberg.org/pages/custom-domains/")
|
||||
|
||||
// RawDomain specifies the domain from which raw repository content shall be served in the following format:
|
||||
// https://{RawDomain}/{owner}/{repo}[/{branch|tag|commit}/{version}]/{filepath...}
|
||||
// (set to []byte(nil) to disable raw content hosting)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue