${PROJECT_ROOT}
- root folder of the project
In order to run TIM you need Postgres database.
You can set one up using Docker from out Third-party-components repository.
In order to change the source code and compile outside Docker you'll need ID-log.
Note! You will not need it to run Docker.
Spring Boot applications support externalized configuration through *.properties files.
Application configuration can be found here: ${PROJECT_ROOT}/src/main/resources/application.properties
.
If there are issues with Ruuter connection to TIM:
Go to src -> main -> resources -> application.properties & modify security.allowlist.jwt
value to have container names and relevant service URL
for example:
security.allowlist.jwt=ruuter-v1-public,ruuter-v1-private,ruuter-v2-private,ruuter-v2-public,dmapper,resql,tim,tim-postgresql,chat-widget,customer-service,127.0.0.1,::1
Note! This step is only required if you run TIM outside Docker. Skip to Postgres configuration
Note! Both keystore password and alias password should be the same.
Tomcat SSL certificate is generated in Docker with:
keytool -genkeypair -alias tomcat -keyalg RSA -keysize 2048 -keystore "keystore.jks" -validity 3650
- The generated keystore should be configured in the
application.properties
JWT certificate is generated in Docker with:
keytool -genkeypair -alias jwtsign -keyalg RSA -keysize 2048 -keystore "jwtkeystore.jks" -validity 3650
relevant configuration properties:
jwt-integration.signature.key-store=classpath:jwtkeystore.jks
jwt-integration.signature.key-store-password=ppjjpp
jwt-integration.signature.keyStoreType=JKS
jwt-integration.signature.keyAlias=jwtsign
To change keystore password, update Dockerfile and configuration with new password.
TIM requires connection to Postgres database to run.
Follow Postgres setup instructions.
Update application.properties
with following properties to match your Postgres configuration.
spring.datasource.url=jdbc:postgresql://localhost:9876/tim
spring.datasource.username=tim
spring.datasource.password=123
Run docker with docker-compose up -d
Note! Some configuration changes may require you to rebuild docker image using docker-compose build
for them to take effect.
See licence here.