Coder Social home page Coder Social logo

Comments (7)

michaelarnauts avatar michaelarnauts commented on June 26, 2024 1

This can quite easily be fixed by using (sub)domain names that point at your home address. Ngnix can route requests to hass based on a specific domain. Even it is a dynamic address, this is possible. This also plays nicely with https what won't work good with just an IP.

from architecture.

balloob avatar balloob commented on June 26, 2024 1

Ah that's a good point too Pascal. Okay, case closed. Subdomains is the solution if people want to run multiple things on a server, Home Assistant doesn't have to know about it.

from architecture.

OttoWinter avatar OttoWinter commented on June 26, 2024

So what you're really asking here is the ability to change the relative URL root of the Home Assistant installation to allow urls like 192.168.178.42/homeassistant/states instead of the "forced" 192.168.178.42/states? I'm not sure how was that would be since Frontend would probably also need to know this at compile time.

(Btw, you can have multiple IPs point to the same computer in your network; for example have 192.168.178.2 point to Home Assistant and 192.168.178.3 to everything else)

from architecture.

balloob avatar balloob commented on June 26, 2024

A pull request to add this to the frontend is welcome. Here are some constraints:

  • It should not make current startup slower because it's doing extra requests or things like that
  • it should be backwards compatible

from architecture.

balloob avatar balloob commented on June 26, 2024

There you go, problem solved, case closed…

from architecture.

pvizeli avatar pvizeli commented on June 26, 2024

That is a problem of reverse proxy and not our software.

@balloob we should not change or make our URL schema dynamic. Otherwise it is hard for things like hass.io to interact with home-assistant.

from architecture.

fanthos avatar fanthos commented on June 26, 2024

To make the web UI reverse proxy compatible with appname, we don't have to make the URL dynamic. Seems that make the front-end works with relative URL will resolve the issue. /api/* mapped to /appname/api/* for front-end page, and nginx will forward it to /api/*.

from architecture.

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.