diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 1e1be369..df407a90 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -26,6 +26,8 @@ services: interval: 30s timeout: 15s retries: 5 + environment: + DAMAP_TITLE: "DAMAP Tool" damap-fe: # Since DAMAP containers are publicly available on Github packages one can diff --git a/src/main/java/org/damap/base/rest/ConfigResource.java b/src/main/java/org/damap/base/rest/ConfigResource.java index 11e6c651..54732380 100644 --- a/src/main/java/org/damap/base/rest/ConfigResource.java +++ b/src/main/java/org/damap/base/rest/ConfigResource.java @@ -42,6 +42,9 @@ public class ConfigResource { @ConfigProperty(name = "damap.gotenberg-url") Optional gotenbergUrl; + @ConfigProperty(name = "damap.title", defaultValue = "DAMAP Tool") + String appTitle; + /** * config. * @@ -55,6 +58,7 @@ public ConfigDO config() { configDO.setAuthScope(authScope); configDO.setAuthUser(authUser); configDO.setEnv(env); + configDO.setAppTitle(appTitle); configDO.setPersonSearchServiceConfigs(personServiceConfigurations.getConfigs()); configDO.setFitsServiceAvailable(getFitsServiceAvailability()); configDO.setLivePreviewAvailable(getGotenbergServiceAvailability()); diff --git a/src/main/java/org/damap/base/rest/config/domain/ConfigDO.java b/src/main/java/org/damap/base/rest/config/domain/ConfigDO.java index 164dad4f..fe59106f 100644 --- a/src/main/java/org/damap/base/rest/config/domain/ConfigDO.java +++ b/src/main/java/org/damap/base/rest/config/domain/ConfigDO.java @@ -17,4 +17,13 @@ public class ConfigDO { private List personSearchServiceConfigs; private boolean fitsServiceAvailable; private boolean livePreviewAvailable; + private String appTitle; + + public void setAppTitle(String appTitle) { + this.appTitle = appTitle; + } + + public String getAppTitle() { + return appTitle; + } } diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index b9eb7516..2919215e 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -1,6 +1,7 @@ # custom config settings # replace these in the config of your custom project or by overriding these variables damap: + title: ${DAMAP_TITLE:DAMAP Tool} env: DEV # override in your custom project with PROD for production deployment origins: http://localhost:8085 # https://your.frontend.com,https://*.yourdomain.com auth: @@ -99,6 +100,7 @@ rest: "%dev": damap: + title: "DAMAP (Development)" origins: http://localhost:4200 auth: backend: @@ -128,6 +130,7 @@ rest: "%test": damap: + title: "DAMAP (Testing)" repositories: recommendation: ['r3d100010468'] # Re3Data id(s) quarkus: