summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/conf/Config.groovy
blob: f516a494a201fecb5bc3b1ee7321639e83855c1d (plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// locations to search for config files that get merged into the main config
// config files can either be Java properties files or ConfigSlurper scripts

/*
 grails.config.locations = [
 "file:${userHome}/.grails/${appName}-config.groovy"
 ]
 if(System.properties["${appName}.config.location"]) {
 grails.config.locations << "file:" + System.properties["${appName}.config.location"]
 }
 */

/*
 * 
 * add the following group of properties to present a user id/password only login
 * 
 idrop.config.preset.host="diamond.ils.unc.edu
 idrop.config.preset.port="2247"
 idrop.config.preset.zone="lifelibZone"
 idrop.config.preset.resource="lifelibResc1"
 *
 idrop.config.idrop.lite.applet.jar="idrop-lite-1.0.0-SNAPSHOT-jar-with-dependencies.jar"
 idrop.config.idrop.lite.codebase="http://iren-web.renci.org/idrop-web/applet"
 idrop.config.idrop.jnlp="http://iren-web.renci.org:8080/idrop/idrop.jnlp"
 idrop.config.idrop.lite.use.applet.dir=false
 * 
 */
idrop.config.idrop.lite.applet.jar="idrop-lite-1.0.0-SNAPSHOT-jar-with-dependencies.jar"
 idrop.config.idrop.lite.codebase="http://iren-web.renci.org/idrop-web/applet"
 idrop.config.idrop.jnlp="http://iren-web.renci.org:8080/idrop/idrop.jnlp"
 idrop.config.idrop.lite.use.applet.dir=false
/*
 * ll config*/
/*idrop.config.idrop.lite.applet.jar="idrop-lite-1.0.0-SNAPSHOT-jar-with-dependencies.jar"
 idrop.config.idrop.lite.codebase="https://lifetime-library.ils.unc.edu/llclient"
 idrop.config.preset.host="diamond.ils.unc.edu"
 idrop.config.preset.port="2247"
 idrop.config.preset.zone="lifelibZone"
 idrop.config.preset.resource="lifelibResc1"
 idrop.config.idrop.lite.use.applet.dir=false
 idrop.config.idrop.jnlp="https://lifetime-library.ils.unc.edu/llclient/idrop.jnlp"
 */
grails.views.enable.jsessionid=true
grails.project.groupId = org.irods.mydrop // change this to alter the default package name and Maven publishing destination
grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format
grails.mime.use.accept.header = false
grails.mime.types = [ html: [
		'text/html',
		'application/xhtml+xml'
	],
	xml: [
		'text/xml',
		'application/xml'
	],
	text: 'text/plain',
	js: 'text/javascript',
	rss: 'application/rss+xml',
	atom: 'application/atom+xml',
	css: 'text/css',
	csv: 'text/csv',
	all: '*/*',
	json: [
		'application/json',
		'text/json'
	],
	form: 'application/x-www-form-urlencoded',
	multipartForm: 'multipart/form-data'
]

// URL Mapping Cache Max Size, defaults to 5000
//grails.urlmapping.cache.maxsize = 1000

// The default codec used to encode data with ${}
grails.views.default.codec = "none" // none, html, base64
grails.views.gsp.encoding = "UTF-8"
grails.converters.encoding = "UTF-8"
// enable Sitemesh preprocessing of GSP pages
grails.views.gsp.sitemesh.preprocess = true
// scaffolding templates configuration
grails.scaffolding.templates.domainSuffix = 'Instance'

// Set to false to use the new Grails 1.2 JSONBuilder in the render method
grails.json.legacy.builder = false
// enabled native2ascii conversion of i18n properties files
grails.enable.native2ascii = true
// whether to install the java.util.logging bridge for sl4j. Disable for AppEngine!
grails.logging.jul.usebridge = true
// packages to include in Spring bean scanning
grails.spring.bean.packages = []
grails.validateable.packages = ['org.irods']

// set per-environment serverURL stem for creating absolute links
environments {
	production {  grails.serverURL = "http://lifetime-library.ils.unc.edu/${appName}" }
	/*production {  grails.serverURL = "http://iren-web.renci.org:8080/${appName}" }*/
	development { grails.serverURL = "http://localhost:8080/${appName}" }
	test {  grails.serverURL = "http://localhost:8080/${appName}"  }
}

// log4j configuration
log4j = {

	root {
		warn()
		additivity = true
	}

	// Example of changing the log pattern for the default console
	// appender:
	//
	// appenders {
	//     console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
	// }

	error  'org.codehaus.groovy.grails.web.servlet',  //  controllers
			'org.codehaus.groovy.grails.web.pages', //  GSP
			'org.codehaus.groovy.grails.web.sitemesh', //  layouts
			'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
			'org.codehaus.groovy.grails.web.mapping', // URL mapping
			'org.codehaus.groovy.grails.commons', // core / classloading
			'org.codehaus.groovy.grails.plugins', // plugins
			'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
			'org.hibernate',
			'net.sf.ehcache.hibernate'

	warn 'org.irods.mydrop'
	info 'org.irods.jargon'
	debug 'org.irods.jargon.spring.security'
	warn 'org.springframework'
	info 'grails.app'

	info 'org.mortbay.log',
			'grails.app.controller',
			'org.springframework.security'
}