diff options
author | Exploding Dragon <explodingfkl@gmail.com> | 2024-08-06 21:03:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-06 09:03:33 -0400 |
commit | de175e3b06e623280058278cdb0a62de7443cd86 (patch) | |
tree | 51dde551a952e329d0035fe25affcf17bcc74fd5 /modules/setting/packages.go | |
parent | 94cca8846e7d62c8a295d70c8199d706dfa60e5c (diff) | |
download | gitea-de175e3b06e623280058278cdb0a62de7443cd86.tar.gz gitea-de175e3b06e623280058278cdb0a62de7443cd86.zip |
Add signature support for the RPM module (#27069)
close #27031
If the rpm package does not contain a matching gpg signature, the
installation will fail. See (#27031) , now auto-signing rpm uploads.
This option is turned off by default for compatibility.
Diffstat (limited to 'modules/setting/packages.go')
-rw-r--r-- | modules/setting/packages.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/setting/packages.go b/modules/setting/packages.go index 00fba67b39..bc093e7ea6 100644 --- a/modules/setting/packages.go +++ b/modules/setting/packages.go @@ -42,6 +42,8 @@ var ( LimitSizeRubyGems int64 LimitSizeSwift int64 LimitSizeVagrant int64 + + DefaultRPMSignEnabled bool }{ Enabled: true, LimitTotalOwnerCount: -1, @@ -97,6 +99,7 @@ func loadPackagesFrom(rootCfg ConfigProvider) (err error) { Packages.LimitSizeRubyGems = mustBytes(sec, "LIMIT_SIZE_RUBYGEMS") Packages.LimitSizeSwift = mustBytes(sec, "LIMIT_SIZE_SWIFT") Packages.LimitSizeVagrant = mustBytes(sec, "LIMIT_SIZE_VAGRANT") + Packages.DefaultRPMSignEnabled = sec.Key("DEFAULT_RPM_SIGN_ENABLED").MustBool(false) return nil } |