Chapter 3. Customizing the Fuse Console branding
You can customize the Fuse Console branding information, such as title, logo, and login page information, by adding a hawtconfig.json
file into your Fuse on Spring Boot standalone application.
Procedure
-
Create a JSON file named
hawtconfig.json
in your local Fuse on Spring Boot standalone application’ssrc/main/webapp
directory. Open the
src/main/webapp/hawtconfig.json
in an editor of your choice, and then add the following content:{ "branding": { "appName": "Red Hat Fuse Console", "appLogoUrl": "img/Logo-Red_Hat-Fuse-A-Reverse-RGB.png", "companyLogoUrl": "img/Logo-RedHat-A-Reverse-RGB.png" }, "login": { "description": "", "links": [] }, "about": { "title": "Red Hat Fuse Console", "productInfo": [], "additionalInfo": "", "copyright": "", "imgSrc": "img/Logo-RedHat-A-Reverse-RGB.png" }, "disabledRoutes": [ "/camel/source", "/diagnostics", "/jvm/discover", "/jvm/local" ] }
- Change the values of the configuration properties listed in Table A.1, “Fuse Console Configuration Properties”.
- Save your changes.
Run Fuse on Spring Boot by using the following command:
mvn spring-boot:run
-
In a web browser, open the Fuse Console by using this URL:
http://localhost:10001/actuator/hawtio/index.html
If you have already run the Fuse Console in a web browser, the branding is stored in the browser’s local storage. To use new branding settings, you must clear the browser’s local storage.