Introduction
To setup custom logos on your IriusRisk application the minimum software version is 1.6.
IriusRisk allows the customization of the two main logos. The two logos are in the following screens-
Login:
UI:
These logos are of sizes of 440px x 265px for the log in screen and 140px x 25px for the one at the top of the menu.
Native Tomcat installations
For native Tomcat installations, the steps to customize your logos are as follows:
- Copy your logos to the file system. Let's assume they are on /logos/logo.png and /logos/logo.small.png for this example.
- Make sure the user that runs the Tomcat application has read permissions on them.
- Edit the $(tomcat_base_dir)/conf/catalina.properties file.
- Add the following lines at the end of the file:
logo.url=/logos/logo.png logo.small.url=/logos/logo.small.png
Docker-based deployments
For docker-based deployments, the logos must be on the base system, let's say they are also on /logos/logo.png and /logos/logo.small.png
To make use of those logos you need to modify the docker-compose.yml base file to read as follows:
[...] tomcat: # grails.env is passed as grails_env as the dot is not allowed for variable names on sh environment: [...] # Set the following variables to set up custom logos. # Recommended sizes are: # Large logo -> 440px x 265px # Small logo -> 140px x 25px - CATALINA_PROPERTIES=logo.url=/tmp/logos/logo.png;logo.small.url=/tmp/logos/logo.small.png volumes: - ./logos:/tmp/logos [...]
In this code snippet, only the modified lines are shown.
In both cases, the variables logo.url and logo.small.url accept a full URL as a source of your logo. If you have your logos on http://example.com/logo.png and http://example.com/logo.small.png you could also use the follwing setup:
logo.url=http://example.com/logo.png logo.small.url=http://example.com/logo.small.png
Docker will need to be restarted for changes to take affect.
Comments
0 comments
Article is closed for comments.