Change Base URL of Camunda Webapp

We’re running Camunda within a Spring Boot application. By default, the Camunda webapp is hosted at the base path /. (like http://localhost:8080/app/welcome/default)
Since we’re adding other endpoints, we want to put the whole webapp under /camunda (like http://localhost:8080/camunda/app/welcome/default) such that we can add /api that points to custom handlers.

Is there a configuration option of the Camunda webapp to achieve this?

1 Like

Hey,

That’s currently not possible, but we are working on this with https://jira.camunda.com/browse/CAM-11373 for 7.13. It’s a tricky topic because in Spring Boot the webapps usually share the same servlet context with your custom resources, so just changing the servlet context path is not an option.

Cheers,
Thorben

2 Likes

Hi, maybe I am misunderstanding but with the Spring Boot application, it is possible to have other endpoints that live under the base path.

  • <base_url>/app = camunda webapp
  • <base_url>/rest = camunda rest api
  • <base_url>/api = custom API paths built with spring that can leverage Camunda java API (or not) and enhance out of the box Camunda APIs.

In our implementation for example, we have the below endpoint that allows us to pass in a deleteReason for a single process instance. This is supported by an existing Camunda API, but creates a batch job, which we did not want to do, so we made the custom endpoint.

  • <base_url>/bpm/custom-delete

That’s correct, the issue with /api is though that Camunda also has endpoints below it.
In our case, we wanted to apply a different authentication to all of our custom endpoints below /api but that also enabled this authentication for some of Camundas endpoints causing the Camunda UI to fail.
We now went instead with a path different from /api that does not clash with Camunda.

Hello everyone,

Does anything changed within this topic?
Is it now possible to set different URL for camunda cockpit than http://localhost:8080/camunda/app/cockpit?

Thanks in advance

Adam

Hello everyone,
I’m interested in this topic too. I didn’t find any documentation about changing the base url, I hope is possible now.
Thanks,
Simone