context.xml 3.88 KB
Newer Older
toaster's avatar
toaster committed
1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/ace-am">
    <Logger className="org.apache.catalina.logger.FileLogger" 
            prefix="aceam." suffix=".log" timestamp="true"/>
    
    <!-- Configuration for authentication. This information should not need to be 
toaster's avatar
toaster committed
7
  changed at all unless you have your own authentication provider-->
toaster's avatar
toaster committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    <Realm className="org.apache.catalina.realm.DataSourceRealm" 
           dataSourceName="jdbc/aceamdb" debug="99" localDataSource="true" 
           roleNameCol="rolename" userCredCol="password" userNameCol="username" 
           userRoleTable="userroles" userTable="users"/>
    
    <!-- If you are using a locally installed Mysql server, you only need to change
       the password entry at the end, otherwise you may need to look at the url
       or the username. 
       
       url - machine name and database name
       username - username used to connect to database
       password - password used for database
       
       'name' is the resource name used by the web app to refer to this
       database and NOT the database name, do not change unless you want bad
       things to happen.-->
    <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" 
              maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/aceamdb" 
              testOnBorrow="true" type="javax.sql.DataSource" validationQuery="SELECT 1"
27
              url="jdbc:mysql://naraapp12/aceam2"
toaster's avatar
toaster committed
28
29
30
31
32
33
34
35
36
37
38
39
40
              username="aceam" 
              password="password" />
    
    <!--Mail server to use when mailing reports. You will need to set this if
    you want reports to be mailed properly.-->
    <Parameter name="mail.server" value="localhost.localdomain"/>
    <!-- Set this e-mail address to an address e-mail should originate from -->
    <Parameter name="mail.from" value="acemail@localhost"/>

    <!-- max number of running audits, default 3 -->
    <Parameter name="throttle.maxaudit" value="3"/>

    <!-- minimum time between srb file reads in milliseconds, default 0 -->
41
    <!--<Parameter name="throttle.wait" value="2000"/>-->
toaster's avatar
toaster committed
42
43
44
45
46
47
48
49
50
51

    <!-- maximum bytes per second per running audit, default = 0 = unlimited -->
    <!-- <Parameter name="throttle.bps" value="1048576"/> -->

    <!-- start automated auditing -->
    <Parameter name="auto.audit.disable" value="true"/>

    <!-- IMS hostname to use. Unless you deployed your own IMS, this should 
       probably not be changed -->
    <Parameter name="ims" value="ims.umiacs.umd.edu"/>
toaster's avatar
toaster committed
52
53
54
55
56
57
58

    <!-- Set this to true to disable internal user management. This should only be used
    in conjunction with changes to the Authentication realm listed above.
    Default: true;
    -->
    <Parameter name="auth.management" value="true"/>

toaster's avatar
toaster committed
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
    <!-- log4j logging properties -->
    <!-- change the A1.File value to a location of your logfile -->
    <Parameter name="log4j.appender.A1.File" value="/tmp/aceam.log"/>
    <!-- Uncomment the following line to log everything to one file, will grow to infinity -->
    <!-- <Parameter name="log4j.appender.A1" value="org.apache.log4j.FileAppender"/> -->
    <!-- The following 3 lines configure a rolling log file -->
    <Parameter name="log4j.appender.A1" value="org.apache.log4j.RollingFileAppender"/>
    <Parameter name="log4j.appender.A1.maxFileSize" value="100000KB"/>
    <Parameter name="log4j.appender.A1.maxBackupIndex" value="5"/>
    
    <!-- generic logging properties, change only if you know what you are doing -->
    <Parameter name="log4j.rootLogger" value="FATAL, A1"/>
    <Parameter name="log4j.appender.A1.layout" value="org.apache.log4j.PatternLayout"/>
    <Parameter name="log4j.appender.A1.layout.ConversionPattern" value="%d{[dd/MMM/yyyy:HH:mm:ss]} %x%m%n"/>
    <Parameter name="log4j.logger.edu.umiacs.irods" value="TRACE"/>
    <Parameter name="log4j.logger.edu.umiacs" value="TRACE"/>
    <!--<Parameter name="log4j.logger.edu.umiacs.irods.api.IRodsConnection" value="TRACE"/>-->
    
</Context>