TheTransitClock / transitclockDocker

Docker installer for TheTransitClock
MIT License
16 stars 15 forks source link

Change endpoints ? #13

Open wkulesza opened 3 years ago

wkulesza commented 3 years ago

Hi, is there a way to configure the endpoints, so that web interface doesnt have /web, but just root of tomcat? When using docker and starting Transitime, we're trying to use Apache Proxy Pass to block the tomcat port. Proxy pass does require to add /web to apache subdomain. - i.e. I can't proxy pass sudomain.domain.com -> domain.com:8080.

vsperez commented 3 years ago

For this there are two answers.

One is to replace the content of webapps/ROOT/ (tomcat) with the content of web application. This one I have not tested, but it should work.

The other is to add this on apache:

ProxyPass /web http://server:8080/web/ ProxyPassReverse /web http://server:8080/web/ ProxyPass / http://server:8080/web/ ProxyPassReverse / http://server:8080/web/

With this configuration: 1.- Everything with web path will be redirected to web, so if some url return by the server contains that path will work. 2.- The root path will be redirected to web.