context.xml 3.69 KB
Newer Older
toaster's avatar
toaster committed
1
2
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/ace-am">
toaster's avatar
   
toaster committed
3
4
  <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
5
  changed at all unless you have your own authentication provider-->
toaster's avatar
   
toaster committed
6
7
  <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
toaster's avatar
toaster committed
8
       the password entry at the end, otherwise you may need to look at the url
toaster's avatar
   
toaster committed
9
10
       or the username.

toaster's avatar
toaster committed
11
       url - machine name and database name
toaster's avatar
toaster committed
12
         - in the form jdbc:mysql://<YOUR_DB_SERVER>/<ACE_DB>
toaster's avatar
toaster committed
13
14
       username - username used to connect to database
       password - password used for database
toaster's avatar
   
toaster committed
15

toaster's avatar
toaster committed
16
17
18
       '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.-->
sashah's avatar
sashah committed
19
  <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/aceamdb" password="ace" testOnBorrow="true" type="javax.sql.DataSource" url="jdbc:mysql://localhost/ace2" username="ace" validationQuery="SELECT 1"/>
toaster's avatar
   
toaster committed
20
  <!--Mail server to use when mailing reports. You will need to set this if
toaster's avatar
toaster committed
21
    you want reports to be mailed properly.-->
toaster's avatar
   
toaster committed
22
23
24
25
26
27
28
29
30
31
32
33
  <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 -->
  <!--<Parameter name="throttle.wait" value="2000"/>-->
  <!-- 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
toaster's avatar
toaster committed
34
       probably not be changed -->
toaster's avatar
   
toaster committed
35
36
  <Parameter name="ims" value="ims.umiacs.umd.edu"/>
  <!-- Set this to true to disable internal user management. This should only be used
toaster's avatar
toaster committed
37
38
39
    in conjunction with changes to the Authentication realm listed above.
    Default: true;
    -->
toaster's avatar
   
toaster committed
40
41
42
43
44
45
46
47
48
49
50
51
52
53
  <Parameter name="auth.management" value="true"/>
  <!-- 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"/>
toaster's avatar
toaster committed
54
  <Parameter name="log4j.logger.edu.umiacs.irods" value="ERROR"/>
toaster's avatar
   
toaster committed
55
56
  <Parameter name="log4j.logger.edu.umiacs" value="TRACE"/>
  <!--<Parameter name="log4j.logger.edu.umiacs.irods.api.IRodsConnection" value="TRACE"/>-->
toaster's avatar
toaster committed
57
</Context>