Skip to content

Commit

Permalink
feat: add externalid-api context to tomcat
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancailbourdin committed Oct 23, 2024
1 parent eb3b7cd commit eb6a2b2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
10 changes: 4 additions & 6 deletions etc/tomcat/conf/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,15 @@
<Host name="localhost" appBase="webapps" unpackWARs="false" autoDeploy="false">

<Context path="/cas" docBase="${server.webapps}/cas" reloadable="false" crossContext="true"/>
<Context path="/externalid" docBase="/opt/tomcat/webapps/externalid" reloadable="false" crossContext="true">
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1"/>
<Parameter name="spring.config.additional-location" value="{PROPERTIES-FILE}"/>
</Context>
<Context path="/manager" docBase="${server.home}/webapps/manager" reloadable="false" antiResourceLocking="false" privileged="true" useHttpOnly="true">
</Context>
<Context path="/probe" docBase="${server.webapps}/psi-probe" reloadable="false" antiResourceLocking="false" privileged="true" useHttpOnly="true" >
</Context>

<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->

<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ waroverlayPluginVersion=0.9.3

casServerVersion=7.1.1-esco-1.0.2

externalIdApiVersion=1.0.0

org.gradle.parallel=true
9 changes: 9 additions & 0 deletions overlays/externalid-api/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies {
runtimeOnly "fr.recia.esco.sarapis.api:externalids:${externalIdApiVersion}@war"
}

war {
archiveFileName="externalid.war"

classpath = classpath.files
}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
rootProject.name = 'gradle-war-deployer'

include 'overlays:cas'
include 'overlays:externalid-api'
include 'overlays:psi-probe'

0 comments on commit eb6a2b2

Please sign in to comment.