Update default to raw.codeberg.page & improve documentation on custom domains

This commit is contained in:
Moritz Marquardt 2021-12-10 14:31:58 +01:00
parent 6af6523a0f
commit 73fa2da646
No known key found for this signature in database
GPG key ID: D5788327BEE388B6
2 changed files with 8 additions and 5 deletions

View file

@ -35,14 +35,14 @@ var ServeFlags = []cli.Flag{
Name: "raw-domain",
Usage: "specifies the domain from which raw repository content shall be served, not set disable raw content hosting",
EnvVars: []string{"RAW_DOMAIN"},
Value: "raw.codeberg.org",
Value: "raw.codeberg.page",
},
// RawInfoPage will be shown (with a redirect) when trying to access RawDomain directly (or without owner/repo/path).
&cli.StringFlag{
Name: "raw-info-page",
Usage: "will be shown (with a redirect) when trying to access $RAW_DOMAIN directly (or without owner/repo/path)",
EnvVars: []string{"RAW_INFO_PAGE"},
Value: "https://docs.codeberg.org/pages/raw-content/",
Value: "https://docs.codeberg.org/codeberg-pages/raw-content/",
},
// Server