Switch GiteaApiToken from byte to string

This commit is contained in:
fnetx 2021-11-26 17:10:31 +01:00
parent 455f65216c
commit 73da80adc1
No known key found for this signature in database
GPG key ID: 03870C95EE9F2661
3 changed files with 5 additions and 5 deletions

View file

@ -39,7 +39,7 @@ var MainDomainSuffix = []byte("." + envOr("PAGES_DOMAIN", "codeberg.page"))
// GiteaRoot specifies the root URL of the Gitea instance, without a trailing slash.
var GiteaRoot = []byte(envOr("GITEA_ROOT", "https://codeberg.org"))
var GiteaApiToken = []byte(envOr("GITEA_API_TOKEN", ""))
var GiteaApiToken = envOr("GITEA_API_TOKEN", "")
//go:embed 404.html
var NotFoundPage []byte