Skip to content

gruemme/kim-attachment-service

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KIM-KAS

Docker

Build with Spring-Boot

Commands

With the spring-boot-maven-plugin it is possible to generate a docker image out of the box.

mvn spring-boot:build-image

The image will be available with name kim-kas. To run it use this command:

docker run --name kas -p 81:8080 -d kim-kas

Need

  • Docker installed

  • Maven 3.5+ or higher

How to use parameters

Parameters can be set by using the -e <PARAMETER_NAME>=<VALUE>

Example:

docker run --name kas -p 81:8080 -d gematik.kim.kas.maxMailSize=30776 -e kim-kas

Parameters

List of parameters:

All Parameters start with gematik.kim.kas.

PARAMATER_NAME

Description

Default

maxMailSize

Maximal allowed size of an e-mail

524288000

storagePath

Path to volume where attachments got stored

./target/storage

logDir

Path to logfile

./target/logs

data_base_location

Path to database storage

./target/db/demo

hostUrl

The main URL to be returned by storage calls

localhost

protocol

The used protocol (Slashes needed)

https://

cleantime

Scheduled time for cronjob. The fields read from left to right are interpreted as follows:

  • Second

  • Minute

  • Hour

  • Day of Month

  • Month

  • Day of week

Full documentation here.

0 0 3 * * *

keepFileTime

Time a file remains in system in milliseconds

7776000000 (90 days)

keepIdTime

Time UUI is unique in milliseconds

31536000000 (1 year)

storeType

Name of the key-store-type

PKCS12

certPath

Path to certificate. Shows to self-signed example certificate. Default is set to RSA-Certificate. If KAS should run on ECC enter classpath:keystore/ecc/kas.gem.kim.telematik-test-ECC.p12

classpath:keystore/rsa/kas.gem.kim.telematik-test.p12

pw

Password of the certificate

00

tsl

Should server start with https

true

endpoints

All these parameters can be used separately. To use more than one, provide them comma separated. The resource can be entered by <host><port>/v1.1/actuator/<resource_name>

Please do not use this options in productive environment!

  • httptrace → Showing the http requests and corresponding answers (Just in memory and limited by the capacity)

  • logfile → Shows the regular logfile

  • env → Shows all environment variables

  • scheduledtasks → Shows all configured tasks, and their configuration

  • mappings → Shows all accessible endpoints

  • health → Shows status of the server

NONE

http_log_capacity

Amount of saved http requests and responses in memory and displayed by httptrace - endpoint

500

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 88.4%
  • HTML 11.6%