Config Bean
The configBean
object includes instance-wide configuration data, primarily the data collected in the settings.ini.cfm file.
See the Mura Scope's globalConfig subscope to access the same information.
Syntax
The following examples illustrate how to "get" and/or "set" various attributes of the configBean
. Use whichever syntax feels best to you.
Loading the Bean
The configBean
is the only bean/object that doesn't require a call to loadBy
to get a populated bean, since it's loaded when the application is initialized.
<cfset configBean = m.getBean('configBean')>
Once you have a variable to to reference the desired bean/object, you can use the example Getters and Setters below.
Getters
configBean.get('attributeName') configBean.get{AttributeName}() configBean.getValue('attributeName')
Setters
configBean.set('attributeName', 'someValue') configBean.set{AttributeName}('someValue') configBean.setValue('attributeName', 'someValue')
Note: Setting any values of the configBean
are only temporary, and last for the duration of the request. In other words, calling the save
method on configBean
will not save any values.
Usage
Use the configBean
bean/object to access global configuration attributes.
Attributes
The table below lists available attributes. For the vast majority of the attributes listed below, you may reference the settings.ini.cfm section for details.
Attribute |
---|
admindir |
admindomain |
adminemail |
adminssl |
allowautoupdates |
allowedindexfiles |
allowlocalfiles |
allowquerycaching |
allowsimplehtmlforms |
allowunicodeinfilenames |
applydbupdates |
appreloadkey |
assetdir |
assetpath |
autodiscoverplugins |
autoresetpasswords |
bcryptpasswords |
broadcastappreloads |
broadcastcachepurges |
broadcastwithproxy |
cffpconfigfilename |
cfstaticjavaloaderscope |
clearsessionhistory |
clusteriplist |
compiler |
confirmsaveasdraft |
contact |
context |
cookiedomain |
cookiepath |
createrequireddirectories |
customurlvardelimiters |
dashboard |
dashboardcomments |
datacollection |
datasource |
dbcasesensitive |
dbpassword |
dbschema |
dbtablespace |
dbtype |
dbusername |
debuggingenabled |
defaultflatviewrange |
defaultflatviewtable |
duplicatetransients |
emailbroadcaster |
enablemuratag |
encryptionkey |
encryptpasswords |
extensionmanager |
filedelim |
filedir |
filestore |
filestoreaccessinfo |
filestoreendpoint |
fmallowedextensions |
fmpublicallowedextensions |
forceadminssl |
hashurls |
hasrazuna |
hstsmaxage |
imageinterpolation |
imagequality |
indexfile |
indexfileinurls |
javaenabled |
loadcontentby |
locale |
lockablenodes |
logevents |
loginstrikes |
mailserverip |
mailserverpassword |
mailserverpopport |
mailserversmtpport |
mailserverssl |
mailservertls |
mailserverusername |
mailserverusernameemail |
managelinks |
mapdir |
maxarchivedversions |
maxsourceimagewidth |
mfaenabled |
mfaperdeviceenabled |
mfasendauthcode |
mode |
mysqlengine |
notifywithversionlink |
plugindir |
pluginspath |
postbundles |
productionassetdir |
productionassetpath |
productiondatasource |
productionfiledir |
productionpushmode |
productionwebroot |
proxypassword |
proxyport |
proxyserver |
proxyuser |
purgecomments |
purgedrafts |
readonlydatasource |
readonlydbpassword |
readonlydbusername |
requirementspath |
saveemptyextendedvalues |
scriptprotect |
scriptprotectexceptions |
securecookies |
sendfrommailserverusername |
serverport |
sessioncookiesexpires |
sessionhistory |
sessiontimeout |
sharableremotesessions |
showadminloginhelp |
sitedir |
siteidinurls |
skipcleanfilecache |
sortpermission |
strictfactory |
strongpasswordregex |
tempdir |
title |
tooltips |
urltitledelim |
usedefaultsmtpserver |
version |
webroot |
webrootmap |
advancedcaching |
alwaysuselocalrenderer |
autoupdatemode |
clientmanagement |
clientstorage |
customtagpaths |
defaultfilemode |
donottrackagents |
editablecomments |
errortemplate |
fmshowapplicationroot |
fmshowsitefiles |
haslockablenodes |
javasettingsloadcoldfusionclasspath |
javasettingsreloadonchage |
javasettingswatchextensions |
javasettingswatchinterval |
maxportalitems |
mfa |
mfaperdevice |
ormautomanagesession |
ormcfclocation |
ormdatasource |
ormdbcreate |
ormenabled |
ormeventhandling |
ormflushatrequestend |
ormlogsql |
ormsavemapping |
ormskipcfcwitherror |
ormusedbformapping |
ping |
recaptchalanguage |
recaptchasecret |
recaptchasitekey |
rendermuraalerts |
requesttimeout |
sameformfieldsasarray |
strongpasswords |
testbox |
usefilemode |
windowdocumentdomain |