Giter VIP home page Giter VIP logo

Comments (5)

tony2guo avatar tony2guo commented on June 21, 2024 1

I am using Traefik as a reverse proxy to route subfolder /vizanti to port 5000 but found some errors due to some URLs is not relative URLs. I'll try to fix this and create a PR.

from vizanti.

MoffKalast avatar MoffKalast commented on June 21, 2024

Hmm well if by host_ip you mean without the :port part that's a bit of a problem. ROS really doesn't want anything to do with root and linux won't let anything but root host on port 80, so it's a bit of a standoff. One option that I've used in the past is to set up a root hosted redirect server like nginx on port 80 separately, that then routes to 5000. Or running server.py with sudo python3.

The server expects some specific paths which would need to be adjusted on both ends to support the extra /vizanti, but in theory it would be doable.

from vizanti.

tony2guo avatar tony2guo commented on June 21, 2024

To add a base URL, I've tried blueprints but can not get it to work.
I've also tried to hardcode the base URL: noetic-devel...tony2guo:vizanti:base-url
It works, but there should be some better ways. I'm not familiar with Flask, so I'm not sure how this should be done.

from vizanti.

MoffKalast avatar MoffKalast commented on June 21, 2024

The current setup uses jinja templating, which seems to have some kind of url_for function that would be added to returned templates. Not sure if it's the correct URL though.

from vizanti.

tony2guo avatar tony2guo commented on June 21, 2024

Thanks for the info. I'll try url_for().

from vizanti.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.