Giter Site home page Giter Site logo

Comments (6)

ajslater avatar ajslater commented on July 29, 2024 2

I'm not really sure how HomeAssistant works. The instructions for HomeAssistant and the HomeAssistant config was provided by alexbelgium and I just stuck it in the docs.

I get the impression that it's a bunch of preconfigured docker containers and a nice web gui to help you configure and manage them.

/config/hypercorn.toml would be a file mounted by the Codex docker container. In a docker-compose.yaml config file it might be mounted similar to what I show below here:

services:
  codex:
      env_file: .env
      image: docker.io/ajslater/codex
      container_name: codex
      volumes:
          - /host/path/to/config:/config
          -/host/path/to/comics:/comics:ro
      ports:
          - 9810:9810
      restart: on-failure

from my docker container documentation.

Where exactly HA is mounting this from i'm not sure. If there's an HA directory and something like /HA/services/codex/config/ that' might be it but I'm out of my depth with HA and kind of hoping alex swoops in to rescue us.

I can see that he provides an nginx reverse proxy config for HA and a custom Dockerfile, but I'm a little lost as to where the mounting happens in the HA config.

I suggest you ask Alex on his github: https://github.com/alexbelgium/hassio-addons/issues

from codex.

alexbelgium avatar alexbelgium commented on July 29, 2024 1

After thinking I think the best for you is to use as endpoints http://debian.local:9810/opds/v2.0/r/0/1 where 9810 is a port that you can expose from the configuration page of the add-on in homeassistant.

To give a bit more details : ingress (and the weird long path) is used to access Codex from your HA app itself.

However if a port is configured in the appropriate HA section, you can access it using ip:port without any weird reverse proxy things that break stuff :)

Edit : just as reference, all your config files including the hypercorn.toml can be found in /homeassistant/addon_configs/db21ed7f_codex/. You'll need a specific add-on to access files, such as my Filebrowser or HA File Editor though

from codex.

ajslater avatar ajslater commented on July 29, 2024

do you have this line in your /config/hypercorn.toml?

root_path = "/api/hassio_ingress/pEGeoOIlm1tpeAudrHRtnmeGFDavfaQjalwJXvX696Q"

from codex.

ajslater avatar ajslater commented on July 29, 2024

It occurs to me that the homeassistant installation might be able to automatically configure this for you. And that homeassistant users might be less familiar with configuring their individual docker based applications.
We may be able solve your individual issue with this or other config changes, but we may want to loop in @alexbelgium the author and maintainer of the homeassistant add on for codex.

from codex.

gandolfi974 avatar gandolfi974 commented on July 29, 2024

do you have this line in your /config/hypercorn.toml?

root_path = "/api/hassio_ingress/pEGeoOIlm1tpeAudrHRtnmeGFDavfaQjalwJXvX696Q"

where i can find this file in my Ha directory ?

from codex.

alexbelgium avatar alexbelgium commented on July 29, 2024

Hi! I'll look at it

Indeed HA is globally an os based on modular docker containers. For example, one for sound, one for supervisor, one for the different add-ons...

Ingress is quite tricky : there is a dual layer of nginx that sends (for example) homeassistant.local:8123/api/hassio_ingress/pEGeoOIlm1tpeAudrHRtnmeGFDavfaQjalwJXvX696Q to a ip internal within the add-on such as 127.0.0.1:8080. As such, I need to have a nignx reverse proxy to rewrite all paths so that the add-on exposes an external path homeassistant.local:8123/api/hassio_ingress/pEGeoOIlm1tpeAudrHRtnmeGFDavfaQjalwJXvX696Q different than the internal one... I'll see if I can add this path

from codex.

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.