1
This commit is contained in:
27
internal/constants/s3.go
Normal file
27
internal/constants/s3.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package constants
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
LogoLinkTTL = 55 * time.Minute
|
||||
LogoMaxSize = 10 << 20 // 10 MB
|
||||
BytesToDetectContentType = 512
|
||||
ParseMultipartFormAllFile = 0
|
||||
TempDirPermission = 0750
|
||||
TempLogoFilePattern = "logo-*.tmp"
|
||||
)
|
||||
|
||||
const (
|
||||
DefaultFileTTL = 30 * 24 * time.Hour //30 days
|
||||
)
|
||||
|
||||
var ValidImageTypes = map[string]bool{
|
||||
"image/png": true,
|
||||
"image/jpeg": true,
|
||||
"image/jpg": true,
|
||||
"image/webp": true,
|
||||
}
|
||||
|
||||
const (
|
||||
RefreshLogoCacheAsyncTimeout = 10 * time.Second
|
||||
)
|
Reference in New Issue
Block a user