Skip to content

Commit

Permalink
feat: add si-ent-api application deployement
Browse files Browse the repository at this point in the history
  • Loading branch information
jgribonvald committed Oct 31, 2024
1 parent bfea155 commit 43e1b48
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etc/tomcat/conf/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@
<Context path="/pronote-ws" docBase="${server.webapps}/pronote-ws" reloadable="false" crossContext="true">
<Parameter name="spring.config.additional-location" value="${PROJECT_HOME}/pronote-ws/"/>
</Context>
<Context path="/si-ent-api" docBase="${server.webapps}/pronote-ws" reloadable="false" crossContext="true">
<Parameter name="spring.config.additional-location" value="${PROJECT_HOME}/si-ent-api/"/>
</Context>
<Context path="/glc2" docBase="${server.webapps}/GLC" reloadable="false" crossContext="true">
<Parameter name="spring.config.additional-location" value="${PROJECT_HOME}/glc/"/>
</Context>
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ escoGLCVersion=1.0.0
wisemappingVersion=5.0.21-recia-1.1.0
escoCollabsoftVersion=0.4.0
escoParamuseretabVersion=0.0.1
siENTAPIVersion=0.0.1-SNAPSHOT

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

war {
archiveName = 'si-ent-api.war'

classpath = classpath.files
}
49 changes: 49 additions & 0 deletions overlays/si-ent-api/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>

<configuration scan="true" scanPeriod="30 seconds">
<contextName>si-ent-api</contextName>
<jmxConfigurator/>

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_DIR}/${CONTEXT_NAME}.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_DIR}/archives/${CONTEXT_NAME}.%d{yyyy-MM-dd}.log.gz
</fileNamePattern>
<maxHistory>366</maxHistory>
</rollingPolicy>
<encoder>
<charset>UTF-8</charset>
<Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger: %msg%n</Pattern>
</encoder>
</appender>

<appender name="AUTH" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_DIR}/${CONTEXT_NAME}-auth.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_DIR}/archives/${CONTEXT_NAME}-auth.%d{yyyy-MM-dd}.log.gz
</fileNamePattern>
<maxHistory>366</maxHistory>
</rollingPolicy>
<encoder>
<charset>UTF-8</charset>
<Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger: %msg%n</Pattern>
</encoder>
</appender>


<logger name="fr.recia" level="WARN"/>
<logger name="org" level="WARN"/>

<logger name="fr.recia.si.ent.api.config.security.AuthenticationService" level="INFO" additivity="false">
<appender-ref ref="AUTH" />
</logger>

<root level="INFO">
<appender-ref ref="FILE"/>
</root>

<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
<resetJUL>true</resetJUL>
</contextListener>

</configuration>
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ include "overlays:GLC"
include 'overlays:wisemapping'
include 'overlays:collabsoft'
include 'overlays:paramuseretab'
include 'overlays:si-ent-api'

0 comments on commit 43e1b48

Please sign in to comment.