-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
764 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
spring: | ||
datasource: | ||
url: jdbc:postgresql://localhost:5489/tarjonta?ApplicationName=tarjonta-service | ||
username: oph | ||
password: oph | ||
|
||
cas: | ||
service: http://localhost:8080/tarjonta-service | ||
|
||
host: | ||
host-virkailija: virkailija.testiopintopolku.fi | ||
host-cas: virkailija.testiopintopolku.fi | ||
host-alb: https://virkailija.testiopintopolku.fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
<include resource="org/springframework/boot/logging/logback/defaults.xml"/> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%d{yyyy-MM-dd'T'HH:mm:ss.SSSX} %-5p {%X{user}} [%t] %-5p %c: %m%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="APP" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
<Append>true</Append> | ||
<File>/tmp/oph-tarjonta-service.log</File> | ||
<encoder> | ||
<pattern>%d{yyyy-MM-dd'T'HH:mm:ss.SSSX} %-5p {%X{user}} [%t] %-5p %c: %m%n</pattern> | ||
</encoder> | ||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
<level>DEBUG</level> | ||
</filter> | ||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> | ||
<maxIndex>20</maxIndex> | ||
<FileNamePattern>/tmp/oph-tarjonta-service.log.%i</FileNamePattern> | ||
</rollingPolicy> | ||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> | ||
<MaxFileSize>10MB</MaxFileSize> | ||
</triggeringPolicy> | ||
</appender> | ||
<appender name="AUDIT" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
<file>/tmp/auditlog_tarjonta-service.log</file> | ||
<append>true</append> | ||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> | ||
<fileNamePattern>${user.home}/logs/auditlog_tarjonta-service.%i.log</fileNamePattern> | ||
<minIndex>1</minIndex> | ||
<maxIndex>10</maxIndex> | ||
</rollingPolicy> | ||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> | ||
<maxFileSize>10MB</maxFileSize> | ||
</triggeringPolicy> | ||
<encoder> | ||
<pattern>%msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<!-- Standard logging --> | ||
<root level="info"> | ||
<appender-ref ref="APP" /> | ||
<appender-ref ref="STDOUT" /> | ||
</root> | ||
<logger name="org.springframework" level="warn" /> | ||
<logger name="org.springframework.security" level="warn" /> | ||
<logger name="org.springframework.boot.autoconfigure.security.AuthenticationManagerConfiguration" level="info" /> | ||
<logger name="fi.vm.sade.java_utils.security.OpintopolkuCasAuthenticationFilter" level="error" /> | ||
<logger name="org.hibernate.SQL" level="error" /> | ||
<logger name="io.swagger.models.parameters.AbstractSerializableParameter" level="error" /> | ||
|
||
<!-- Auditlog --> | ||
<logger name="fi.oph.ohjausparametrit.audit.AuditHelper" level="INFO" additivity="false"> | ||
<appender-ref ref="AUDIT" /> | ||
<appender-ref ref="STDOUT" /> | ||
</logger> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tarjonta-service/src/main/java/fi/vm/sade/tarjonta/App.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package fi.vm.sade.tarjonta; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class App { | ||
|
||
public static void main(String[] args) { | ||
System.setProperty("server.servlet.context-path", "/tarjonta-service"); | ||
SpringApplication.run(App.class, args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.