.plugins.file-uploader.4.0.4.source-code.application.groovy Maven / Gradle / Ivy
import com.causecode.fileuploader.*
fileuploader {
groups {
user {
maxSize = 1024 * 1024 * 2 // 2 MB
allowedExtensions = ["jpg", "jpeg", "gif", "png"]
storageTypes = "CDN"
container = "causecode-1"
provider = CDNProvider.AMAZON
makePublic = true
}
image {
maxSize = 1024 * 1024 * 2 // 2 MB
allowedExtensions = ["jpg", "jpeg", "gif", "png"]
storageTypes = "CDN"
container = "causecode-1"
provider = CDNProvider.AMAZON
expirationPeriod = 24 * 60 * 60 * 1 * 365L
}
profile {
maxSize = 1024 * 1024 * 2 // 2 MB
allowedExtensions = ["jpg", "jpeg", "gif", "png"]
storageTypes = "CDN"
container = "causecode-1"
provider = CDNProvider.AMAZON
expirationPeriod = 24 * 60 * 60 * 1 * 365L
}
testGoogle {
maxSize = 1024 * 1024 * 2 // 2 MB
allowedExtensions = ["jpg", "jpeg", "gif", "png", "txt"]
storageTypes = "CDN"
container = "causecode"
provider = CDNProvider.GOOGLE
expirationPeriod = 24 * 60 * 60 * 1 * 365L
}
testAmazon {
maxSize = 1024 * 1024 * 2 // 2 MB
allowedExtensions = ["jpg", "jpeg", "gif", "png", "txt"]
storageTypes = "CDN"
container = "causecode"
provider = CDNProvider.AMAZON
expirationPeriod = 24 * 60 * 60 * 1 * 365L
}
testLocal {
maxSize = 1024 * 1024 * 2 // 2 MB
allowedExtensions = ["jpg", "jpeg", "gif", "png", "txt"]
path = '/tmp'
container = 'test-container'
}
}
storageProvider {
amazon {
AmazonKey = "RANDOM_KEY"
AmazonSecret = "RANDOM_SECRET"
}
google {
// The path of the JSON Key file.
authFile = 'testkey.json'
project_id = 'test_id'
client_id = 'test_client_id'
client_email = '[email protected]'
private_key = "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC1plnUQ" +
"kO0H1qj\nrrrrrrrwoI2N9wmXopHSdrmtL6cfPo3uzEMCXB9/evmDn6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ClFnuquanGuqhcxG" +
"DiVa0Q1ZLG14H42vb0oJCYdwl\nvogNGOoeGrJzLUlQj2BcWRSe6m4RdHcA1F+El58EUFLVY5sbsJP5/NzUSR8qa9KY\n" +
"rYL79RdxJGxhptw/zMWmhZ668Y1r8JLu2pF/ATZATWDayoiKfAjhEaLZAoGBAIlB\nWlH5C29e/iKWxnPfd/xAEBo/O3" +
"pgLlAZQ+8eSKsBCUxEMx3NlwPPT0KIgNa5ofzn\ntBfSxvFLZD5STxC0FaiEHEpb/nDZJ97pLoqlNLAlVG7EMOajETOQ" +
"dnDkietRm0Yr\n2OqcFm9ECVBSTCTCC2EDGhQP8Oxbu6uBS2zpZM/FAoGAEZSUVj8CwBh9iPQtjlAp\no0CS8wMxeLKw" +
"ge6ft9BCgGieEmYOq02mt6c52vez/rrrrrrQbsIo+mV4ZbQs0mgS\nYPrqYpFr+8eeZsQ0jIv+hUQW35HYoRLOkeuK+L" +
"SRVHUcHBpJ+bsPOrrUFiZYVMCI\n1231etEo75OxbK4sskK+gUsaaaaaaaaaaaaa=\n-----END PRIVATE KEY-----\n"
private_key_id = 'test_123'
type = 'service_account'
}
}
}
environments {
test {
grails.gorm.autoFlush = true
}
}