Servers can specify a logo and/or a CSS style sheet to be used with Snapper. This configuration is done by placing “organisation_logo.png” and “organisation.css” files in the “well-known” directory on the server. There are two ways to do this, details are below.
Note that changing the logo or CSS file may affect the accessibility of Snapper and any other pages that use them.
The “organisation_logo.png” file should be designed for rendering with a height of 100px and maximum width of 100px, but also scaling to both 80px and 40px.
An example of the “organisation.css” file is shown here:organisation.css
The default location that Ontoserver will use for serving custom logo and CSS files is “/well-known”.
If you would prefer to store files in a different file location in the Ontoserver container, the “ontoserver.well-known.path” configuration parameter can be set to the path on the server where the logo and/or CSS file can be found.
You can mount a directory into this location to provide these files. For example, when using Docker Compose, the following line in the configuration of an Ontoserver container will mount the “my-well-known” directory in to the “/well-known” directory in the Ontoserver container.
Docker image extension
An alternative to using a volume mount is to extend the Ontoserver docker image. This can be done by including a COPY command in your Dockerfile extending the Ontoserver base image.