source: trunk/grails-app/conf/Config.groovy @ 3

Last change on this file since 3 was 3, checked in by robert@…, 9 years ago

Externalized configuration; improved assay view (detail views of runs and samples); implemented uploading and parsing of FASTA and QUAL files

File size: 6.0 KB
Line 
1// ##################################################################################
2// DO NOT Change these settings!!!
3// You can overwrite them by adding your own configuration file in ~/.grails/[environment]-[appName].properties
4
5// locations to search for config files that get merged into the main config
6// config files can either be Java properties files or ConfigSlurper scripts
7grails.config.locations = [
8        // the default per-environment configuration
9        // (e.g. grails-app/conf/config-development.properties)
10        "classpath:config-${grails.util.GrailsUtil.environment}.properties",
11        "file:${ basedir }/grails-app/conf/config-${grails.util.GrailsUtil.environment}.properties",
12        "classpath:config-${grails.util.GrailsUtil.environment}.groovy",
13       
14        // the external configuration to override the default
15        // configuration (e.g. ~/.grails-config/ci-gscf.properties)
16        "file:${userHome}/.grails-config/${grails.util.GrailsUtil.environment}-${appName}.properties",
17        "file:${userHome}/.grails-config/${grails.util.GrailsUtil.environment}-${appName}.groovy",
18        "file:${userHome}/.grails/${grails.util.GrailsUtil.environment}-${appName}.properties",
19        "file:${userHome}/.grails/${grails.util.GrailsUtil.environment}-${appName}.groovy"
20]
21
22// Add extra location if desired
23if(System.properties["${appName}.config.location"]) {
24        grails.config.locations << "file:" + System.properties["${appName}.config.location"]
25}
26
27// Whether to synchronize with gscf or not. By default, synchronization is turned on
28metagenomics.synchronization = true
29
30// By default, Metagenomics only fetches studies that have been changed by GSCF. GSCF sends
31// notifications to the module, when something changes. However, it is possible that these messages
32// can't be delivered or some other error happens. In that case, the data in the module is out of sync.
33// To prevent that, every now and then a complete synchronization is performed. The frequency of this
34// operation can be set by the following parameter. The parameter determines the number of seconds
35// between two consecutive full synchronizations. Setting it to zero disables full synchronization, but
36// is strongly discouraged.
37metagenomics.fullSynchronization = 24 * 3600 // 1 day
38
39// Temporary directory to upload files to.
40// If the directory is given relative (e.g. 'fileuploads/temp'), it is taken relative to the web-app directory
41// Otherwise, it should be given as an absolute path (e.g. '/home/user/sequences')
42// The directory should be writable by the webserver user
43metagenomics.fileUploadDir = "filuploads/temp"
44
45// Maximum age that uploaded files should be kept on the server before deleting them. When a user uploads a file,
46// but doesn't process the file (e.g. because he leaves the page beforehand or his computer crashes), the files
47// remain in the upload directory. This mechanism ensures that the upload directory is cleaned after some time.
48// The time is given in seconds.
49metagenomics.fileUploadMaxAge = 2 * 24 * 3600 // 2 days
50
51// Directory to save the uploaded files permanently
52// If the directory is given relative (e.g. 'fileuploads/temp'), it is taken relative to the web-app directory
53// Otherwise, it should be given as an absolute path (e.g. '/home/user/sequences')
54// The directory should be writable by the webserver user
55metagenomics.fileDir = "fileuploads/permanent"
56
57// Path in GSCF that is used after baseURL for adding a new study
58gscf.addStudyPath = "/studyWizard/index?jump=create"
59
60grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination
61grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format
62grails.mime.use.accept.header = false
63grails.mime.types = [ html: ['text/html','application/xhtml+xml'],
64                      xml: ['text/xml', 'application/xml'],
65                      text: 'text/plain',
66                      js: 'text/javascript',
67                      rss: 'application/rss+xml',
68                      atom: 'application/atom+xml',
69                      css: 'text/css',
70                      csv: 'text/csv',
71                      all: '*/*',
72                      json: ['application/json','text/json'],
73                      form: 'application/x-www-form-urlencoded',
74                      multipartForm: 'multipart/form-data'
75                    ]
76
77// URL Mapping Cache Max Size, defaults to 5000
78//grails.urlmapping.cache.maxsize = 1000
79
80// The default codec used to encode data with ${}
81grails.views.default.codec = "none" // none, html, base64
82grails.views.gsp.encoding = "UTF-8"
83grails.converters.encoding = "UTF-8"
84
85// enable Sitemesh preprocessing of GSP pages
86grails.views.gsp.sitemesh.preprocess = true
87
88// Set to false to use the new Grails 1.2 JSONBuilder in the render method
89grails.json.legacy.builder = false
90
91// enabled native2ascii conversion of i18n properties files
92grails.enable.native2ascii = true
93
94// whether to install the java.util.logging bridge for sl4j. Disable for AppEngine!
95grails.logging.jul.usebridge = true
96
97// packages to include in Spring bean scanning
98grails.spring.bean.packages = []
99
100// log4j configuration
101log4j = {
102    // Example of changing the log pattern for the default console
103    // appender:
104    //
105    //appenders {
106    //    console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
107    //}
108
109        trace   'grails.app'
110       
111    error  'org.codehaus.groovy.grails.web.servlet',  //  controllers
112           'org.codehaus.groovy.grails.web.pages', //  GSP
113           'org.codehaus.groovy.grails.web.sitemesh', //  layouts
114           'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
115           'org.codehaus.groovy.grails.web.mapping', // URL mapping
116           'org.codehaus.groovy.grails.commons', // core / classloading
117           'org.codehaus.groovy.grails.plugins', // plugins
118           'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
119           'org.springframework',
120           'org.hibernate',
121           'net.sf.ehcache.hibernate'
122
123    warn   'org.mortbay.log'
124}
125
126// jquery plugin
127grails.views.javascript.library = "jquery"
128jquery.version = '1.4.4'
Note: See TracBrowser for help on using the repository browser.