From 7a58c97817709562aef0cd45eabe1a99fa38c8a9 Mon Sep 17 00:00:00 2001 From: crapStone Date: Fri, 17 Nov 2023 23:49:18 +0100 Subject: [PATCH] remove codeberg default values --- cli/flags.go | 8 ++------ integration/main_test.go | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cli/flags.go b/cli/flags.go index b7c2c4e..097cf4f 100644 --- a/cli/flags.go +++ b/cli/flags.go @@ -29,26 +29,24 @@ var ( Name: "gitea-root", Usage: "specifies the root URL of the Gitea instance, without a trailing slash.", EnvVars: []string{"GITEA_ROOT"}, - Value: "https://codeberg.org", }, // GiteaApiToken specifies an api token for the Gitea instance &cli.StringFlag{ Name: "gitea-api-token", Usage: "specifies an api token for the Gitea instance", EnvVars: []string{"GITEA_API_TOKEN"}, - Value: "", }, &cli.BoolFlag{ Name: "enable-lfs-support", Usage: "enable lfs support, require gitea >= v1.17.0 as backend", EnvVars: []string{"ENABLE_LFS_SUPPORT"}, - Value: true, + Value: false, }, &cli.BoolFlag{ Name: "enable-symlink-support", Usage: "follow symlinks if enabled, require gitea >= v1.18.0 as backend", EnvVars: []string{"ENABLE_SYMLINK_SUPPORT"}, - Value: true, + Value: false, }, &cli.StringFlag{ Name: "default-mime-type", @@ -72,7 +70,6 @@ var ( Name: "pages-domain", Usage: "specifies the main domain (starting with a dot) for which subdomains shall be served as static pages", EnvVars: []string{"PAGES_DOMAIN"}, - Value: "codeberg.page", }, // 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...} @@ -81,7 +78,6 @@ var ( 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.page", }, // ######################### diff --git a/integration/main_test.go b/integration/main_test.go index 34e419b..6d2aaf4 100644 --- a/integration/main_test.go +++ b/integration/main_test.go @@ -45,6 +45,7 @@ func startServer(ctx context.Context) error { setEnvIfNotSet("HTTP_PORT", "8880") setEnvIfNotSet("ENABLE_HTTP_SERVER", "true") setEnvIfNotSet("DB_TYPE", "sqlite3") + setEnvIfNotSet("GITEA_ROOT", "https://codeberg.org") app := cli.NewApp() app.Name = "pages-server"