From 5b2e91a37a93789639ae63e9493810b07d824b0c Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 4 Dec 2021 21:15:51 +0100 Subject: [PATCH] REDIRECT_RAW_INFO -> RAW_INFO_PAGE --- README.md | 2 +- cmd/flags.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 044379e..ec87cc1 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ - `RAW_DOMAIN` (default: `raw.codeberg.org`): domain for raw resources. - `GITEA_ROOT` (default: `https://codeberg.org`): root of the upstream Gitea instance. - `GITEA_API_TOKEN` (default: empty): API token for the Gitea instance to access non-public (e.g. limited) repos. -- `REDIRECT_RAW_INFO` (default: https://docs.codeberg.org/pages/raw-content/): info page for raw resources, shown if no resource is provided. +- `RAW_INFO_PAGE` (default: https://docs.codeberg.org/pages/raw-content/): info page for raw resources, shown if no resource is provided. - `ACME_API` (default: https://acme-v02.api.letsencrypt.org/directory): set this to https://acme.mock.director to use invalid certificates without any verification (great for debugging). ZeroSSL might be better in the future as it doesn't have rate limits and doesn't clash with the official Codeberg certificates (which are using Let's Encrypt), but I couldn't get it to work yet. - `ACME_EMAIL` (default: `noreply@example.email`): Set this to "true" to accept the Terms of Service of your ACME provider. diff --git a/cmd/flags.go b/cmd/flags.go index a631492..57cddda 100644 --- a/cmd/flags.go +++ b/cmd/flags.go @@ -41,7 +41,7 @@ var ServeFlags = []cli.Flag{ &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{"REDIRECT_RAW_INFO"}, + EnvVars: []string{"RAW_INFO_PAGE"}, Value: "https://docs.codeberg.org/pages/raw-content/", },