-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
ModuleConfig.cfc
65 lines (60 loc) · 1.91 KB
/
ModuleConfig.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**
* Copyright Ortus Solutions, Corp
* www.ortussolutions.com
* ---
* Module Configuration
*/
component {
// Module Properties
this.title = "ColdBox Storages";
this.author = "Ortus Solutions";
this.webURL = "https://www.ortussolutions.com";
this.description = "Provides a collection of facade storages for ColdFusion and distributed caching";
this.version = "@build.version@[email protected]@";
this.cfmapping = "cbstorages";
/**
* Configure
*/
function configure(){
settings = {
// Cache Storage Settings
cacheStorage : {
// The CacheBox registered cache to store data in
cachename : "template",
// The default timeout of the session bucket, defaults to 60
timeout : 60,
// The identifierProvider is a closure/udf that will return a unique identifier according to your rules
// If you do not provide one, then we will search in session, cookie and url for the ColdFusion identifier.
// identifierProvider : function(){}
identifierProvider : "" // If it's a simple value, we ignore it.
},
// Cookie Storage settings
cookieStorage : {
// Matches the secure attribute of cfcookie, ssl only
secure : false,
// If yes, sets cookie as httponly so that it cannot be accessed using JavaScripts
httpOnly : true,
// Applicable global cookie domain
domain : "",
// Use encryption of values
useEncryption : false,
// The unique seeding key to use: keep it secret, keep it safe
encryptionSeed : "CBStorages",
// The algorithm to use: https://cfdocs.org/encrypt
encryptionAlgorithm : "CFMX_COMPAT",
// The encryption encoding to use
encryptionEncoding : "Base64"
}
};
}
/**
* Fired when the module is registered and activated.
*/
function onLoad(){
}
/**
* Fired when the module is unregistered and unloaded
*/
function onUnload(){
}
}