mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
limit generating non-wildcard cert to user and org that exists
This commit is contained in:
parent
83b1c4f9e4
commit
62bff5d1b7
4 changed files with 49 additions and 2 deletions
|
@ -26,6 +26,9 @@ const (
|
|||
// TODO: move as option into cache interface
|
||||
fileCacheTimeout = 5 * time.Minute
|
||||
|
||||
// ownerExistanceCacheTimeout specifies the timeout for the existance of a repo/org
|
||||
ownerExistanceCacheTimeout = 5 * time.Minute
|
||||
|
||||
// fileCacheSizeLimit limits the maximum file size that will be cached, and is set to 1 MB by default.
|
||||
fileCacheSizeLimit = int64(1000 * 1000)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue