mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
main-domain-suffix -> pages-domain
This commit is contained in:
parent
fdd04610e5
commit
97d4ea9d6b
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ var ServeFlags = []cli.Flag{
|
||||||
// pages, or used for comparison in CNAME lookups. Static pages can be accessed through
|
// pages, or used for comparison in CNAME lookups. Static pages can be accessed through
|
||||||
// https://{owner}.{MainDomain}[/{repo}], with repo defaulting to "pages".
|
// https://{owner}.{MainDomain}[/{repo}], with repo defaulting to "pages".
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "main-domain-suffix",
|
Name: "pages-domain",
|
||||||
Usage: "specifies the main domain (starting with a dot) for which subdomains shall be served as static pages",
|
Usage: "specifies the main domain (starting with a dot) for which subdomains shall be served as static pages",
|
||||||
EnvVars: []string{"PAGES_DOMAIN"},
|
EnvVars: []string{"PAGES_DOMAIN"},
|
||||||
Value: "codeberg.page",
|
Value: "codeberg.page",
|
||||||
|
|
|
@ -37,7 +37,7 @@ func Serve(ctx *cli.Context) error {
|
||||||
giteaRoot := strings.TrimSuffix(ctx.String("gitea-root"), "/")
|
giteaRoot := strings.TrimSuffix(ctx.String("gitea-root"), "/")
|
||||||
giteaAPIToken := ctx.String("gitea-api-token")
|
giteaAPIToken := ctx.String("gitea-api-token")
|
||||||
rawDomain := ctx.String("raw-domain")
|
rawDomain := ctx.String("raw-domain")
|
||||||
mainDomainSuffix := []byte(ctx.String("main-domain-suffix"))
|
mainDomainSuffix := []byte(ctx.String("pages-domain"))
|
||||||
rawInfoPage := ctx.String("raw-info-page")
|
rawInfoPage := ctx.String("raw-info-page")
|
||||||
listeningAddress := fmt.Sprintf("%s:%s", ctx.String("host"), ctx.String("port"))
|
listeningAddress := fmt.Sprintf("%s:%s", ctx.String("host"), ctx.String("port"))
|
||||||
enableHTTPServer := ctx.Bool("enable-http-server")
|
enableHTTPServer := ctx.Bool("enable-http-server")
|
||||||
|
|
Loading…
Reference in a new issue