Comments (6)
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.
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.
do you have this line in your /config/hypercorn.toml
?
root_path = "/api/hassio_ingress/pEGeoOIlm1tpeAudrHRtnmeGFDavfaQjalwJXvX696Q"
from codex.
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.
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.
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)
- CSRF Failed: Origin checking failed - https://codex.mysite.com does not match any trusted origins. HOT 1
- No comics found for these filters, no matter the filter HOT 2
- Newest update breaks opds streaming HOT 13
- Running the docker container in Kubernetes
- [Feature Request] Guided Viewing HOT 1
- [Feature Request] Multilingual comic support HOT 1
- Reader not opening for comics HOT 5
- Custom Covers documentation HOT 2
- Poll all libraries issue HOT 1
- [Feature Request] Custom cover enhancement
- OPDS connection HOT 2
- User login issue HOT 2
- OPDS reading issue. Cover only HOT 2
- iPad - screen refresh HOT 10
- iPad - incorrect up arrow behavior HOT 3
- Can't find link to admin panel HOT 3
- Clicking series link in comic tag doesn't work with "Top Group" as Issues or Folders HOT 5
- [Feature Request] Hold on to last sort setting for each top group
- Odd log entries HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codex.