| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one | |
| or more contributor license agreements. See the NOTICE file | |
| distributed with this work for additional information | |
| regarding copyright ownership. The ASF licenses this file | |
| to you under the Apache License, Version 2.0 (the | |
| "License"); you may not use this file except in compliance | |
| with the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, | |
| software distributed under the License is distributed on an | |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| KIND, either express or implied. See the License for the | |
| specific language governing permissions and limitations | |
| under the License. | |
| --> | |
| <!-- | |
| Example Tomcat Context Configuration file for Roller | |
| Documented in Chapter 7.1-7.2 of Roller Installation Guide | |
| If you'd like to use Tomcat provided datasource and/or mail sessions then: | |
| - Uncomment the appropriate database / mail blocks below | |
| - Set database.connectionType=jndi property in roller-custom.properties | |
| - Set mail.connectionType=jndi property in roller-custom.properties | |
| - Set the correct values for the database and mail server | |
| - Rename this file to context.xml and deploy Roller WAR to Tomcat. | |
| --> | |
| <Context path="/roller" debug="0"> | |
| <!--Resource name="jdbc/rollerdb" auth="Container" type="javax.sql.DataSource" | |
| driverClassName="com.mysql.jdbc.Driver" | |
| url="jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8" | |
| username="scott" | |
| password="tiger" | |
| maxActive="20" maxIdle="3" removeAbandoned="true" maxWait="3000" /--> | |
| <!-- Below sample is for the GMail SMTP server, modify as appropriate | |
| for the SMTP server and account you're using. Properties defined here: | |
| https://javamail.java.net/nonav/docs/api/com/sun/mail/smtp/package-summary.html | |
| --> | |
| <!--Resource name="mail/Session" auth="Container" type="javax.mail.Session" | |
| mail.transport.protocol="smtp" | |
| mail.smtp.host="smtp.gmail.com" | |
| mail.smtp.port="465" | |
| mail.smtp.auth="true" | |
| mail.smtp.user="blah.blah@gmail.com" | |
| password="yourgmailpassword" | |
| mail.smtp.starttls.enable="true" | |
| mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory" | |
| mail.smtp.socketFactory.port="465" | |
| mail.smtp.socketFactory.fallback="false" | |
| mail.debug="false" | |
| /--> | |
| </Context> |