How to exclude a webpage (or whole folder) from being secured from keycloak

I am really new to keycloak. I have a maven java servlet web application running on tomcat. I installed the tomcat dependencies needed and did all the required configurations according to the tutorial at keycloak both on my realm and my web application.

My issue is that keycloak secured all my webpages and i am getting HTTP Status 403 – Forbidden unless logged in even on my main page.

How can i exclude a webpage from keycloak ? I want that page accessible to anyone since it’s my main page where users can view a log in button.

image

Question :
If i don’t put the Tomcat adapter on lib and instead leave Tomcat as it is and put the servlet filter on my web app application that would fix my problem ?