Skip to content

Commit

Permalink
Add alias for external resources and allow to add custom libs
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Apr 5, 2016
1 parent 3ff1a72 commit 85a4971
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public class OxTrustConfiguration {
public static final String DIR = BASE_DIR + File.separator + "conf" + File.separator;

public static final String LDAP_PROPERTIES_FILE = DIR + "oxtrust-ldap.properties";
public static final String LDAP_DEFAULT_PROPERTIES_FILE = DIR + "ox-ldap.properties";
public static final String LDAP_CENTRAL_PROPERTIES_FILE = DIR + "oxtrust-central-ldap.properties";

public static final String APPLICATION_CONFIGURATION = "oxtrust-config.json";
Expand Down
7 changes: 4 additions & 3 deletions server/src/main/webapp/META-INF/context.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/oxTrust" docBase="oxTrust"
debug="5" reloadable="true" crossContext="true">
<Context antiJARLocking="true" path="/identity" aliases="/ext/resources=${gluu.external.resource.base}/oxtrust/resources">

<Resource name="jdbc/inumDB" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
driverClassName="com.mysql.jdbc.Driver"
username="inumbase" password="InUmB@53"
url="jdbc:mysql://${db.inumdb.host}:3306/inumbase?autoReconnect=true" validationQuery="select 1"/>


<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
virtualClasspath="${gluu.external.resource.base}/oxauth/libs/*.jar"/>

</Context>

0 comments on commit 85a4971

Please sign in to comment.