MoffKalast / vizanti

A mission planner and visualizer for controlling outdoor ROS robots.
https://wiki.ros.org/vizanti
BSD 3-Clause "New" or "Revised" License
134 stars 26 forks source link

Add base URL #40

Closed tony2guo closed 9 months ago

tony2guo commented 9 months ago

See https://github.com/MoffKalast/vizanti/issues/35 I used url_for in index.html to get the static file URL and set a base_url variable for dynamic import in templates/js. For base URL "/vizanti", launch with roslaunch vizanti server.launch base_url:=/vizanti Go to http://:5000/vizanti/

tony2guo commented 9 months ago

Thanks for the review! I have many web services running, foxglove, vizanti, webviz, jupyterlab, etc. So I would like every service to have a base URL. For example, http:///foxglove/, http:///vizanti/, and http:///webviz/. I use traefik routers rule PathPrefix to route those services. For services that do not have a base URL option, I use traefik to strip prefix. I have tried to strip prefix on vizanti but cannot make it work.