1

In a Spring Boot application, I can modify the context path using the property server.servlet.context-path in application.properties.

Since ThingsBoard uses Spring, I expect a similar customization to be possible.

I want a dockerized ThingsBoard to be under http://IP_ADDR/thingsboard instead of the default http://IP_ADDR:9090. As for the port, I can redirect the request on the port 80 with a reverse proxy. My problem is the path /thingsboard.

Is there an environment variable that I can use to customize the context path for a ThingsBoard Docker container?

Thanks.

EM90
  • 552
  • 1
  • 8
  • 22
  • Any update in this? I tried modifying ``/usr/share/thingsboard/conf/thingsboard.yml`` ``` < # Server Context Path < servlet: < context-path: "/thingsboard" < "[/thingsboard/api/**]": --- > "[/api/**]": ``` But no luck... – adjective_name Jul 01 '21 at 15:45
  • Unfortunately not, I didn't solve the issue... – EM90 Jul 05 '21 at 06:15
  • This is not possible to achieve without code change. You should reconfigure many things to do this. – Andrew Oct 22 '21 at 13:34
  • Thank you. In the end, we (it's not only me) decided that ThingsBoard should be under the `/` path. This way it works fine. – EM90 Oct 24 '21 at 06:33

1 Answers1

0

You should try to modify the configuration of the Web Server, say Tomcat, which is holding the thingsboard app.

Soony
  • 903
  • 9
  • 18