try to better highlight donations and sponsorships options ...

... and to better explain why they are required.

Please don't say "someone else will help the project, I'll just use it"

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-07-16 20:29:10 +02:00
parent 6b995db864
commit 378995147b
8 changed files with 38 additions and 11 deletions

View File

@@ -234,6 +234,7 @@ var (
webOpenAPIPath string
// max upload size for http clients, 1GB by default
maxUploadFileSize = int64(1048576000)
hideSupportLink bool
installationCode string
installationCodeHint string
fnInstallationCodeResolver FnInstallationCodeResolver
@@ -605,6 +606,8 @@ type Conf struct {
Cors CorsConfig `json:"cors" mapstructure:"cors"`
// Initial setup configuration
Setup SetupConfig `json:"setup" mapstructure:"setup"`
// If enabled, the link to the sponsors section will not appear on the setup screen page
HideSupportLink bool `json:"hide_support_link" mapstructure:"hide_support_link"`
}
type apiResponse struct {
@@ -746,6 +749,7 @@ func (c *Conf) Initialize(configDir string, isShared int) error {
}
csrfTokenAuth = jwtauth.New(jwa.HS256.String(), getSigningKey(c.SigningPassphrase), nil)
hideSupportLink = c.HideSupportLink
exitChannel := make(chan error, 1)