mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-05-01 02:23:38 +02:00
16 lines
587 B
Go
16 lines
587 B
Go
package upstream
|
|
|
|
import "time"
|
|
|
|
// fileCacheTimeout specifies the timeout for the file content cache - you might want to make this quite long, depending
|
|
// on your available memory.
|
|
// TODO: move as option into cache interface
|
|
var fileCacheTimeout = 5 * time.Minute
|
|
|
|
// fileCacheSizeLimit limits the maximum file size that will be cached, and is set to 1 MB by default.
|
|
var fileCacheSizeLimit = 1024 * 1024
|
|
|
|
// canonicalDomainCacheTimeout specifies the timeout for the canonical domain cache.
|
|
var canonicalDomainCacheTimeout = 15 * time.Minute
|
|
|
|
const canonicalDomainConfig = ".domains"
|