Closed Hyp3rSoniX closed 6 months ago
AppAPI should setup the context chat's docker container in the same docker network as the main nextcloud container and use 127.0.0.1 for security purposes. It then accesses the HTTP endpoints using the container's name as the host address. The HTTP endpoints cannot be accessed from the host machine's network.
@bigcat88 I'm not sure if changing the docker socket proxy's settings would change things here. Your insights would be valuable.
@Hyp3rSoniX Can you post the outputs to docker inspect <container_name>
for both nextcloud and the chat backend?
I run nextcloud inside a proxmox lxc. Docker, runs inside another lxc.
currently unfortunately this configuration is considered as a remote install - Nextcloud and ExApps runs on different hosts..
is there a way I can somehow tell nextcloud to deploy the chat backend with MY desired env vars?
it is not possible currently, see
I'm not sure if changing the docker socket proxy's settings would change things here
this will happen, the env variables will change depending on whether the ExApp is local or remote
Similar issue: https://github.com/cloud-py-api/app_api/issues/231
Alright, I somehow managed to set the stuff up on my system via the manual installation thing.
However it would be cool if you could reconsider maybe at least giving the server admins the option to enable/disable remote docker host usage.
On my system, the one click install was almost successful, in the end it failed just because of the APP_HOST being set restrictively.
Updating the manual install is probably also gonna be harder than the one click install...
My installation is working now though, so feel free to close this issue, if you don't need it for anything else.
Describe the issue I run nextcloud inside a proxmox lxc. Docker, runs inside another lxc. I have set up the docker proxy and am able to add my docker host daemon to nextcloud.
BUT when I install the context chat backend via the ExApps Web UI, I see that the chat backend gets set up with environment variables, that would have me need to either run nextcloud on the same host as the docker daemon, or in the same docker network.
That is not the case with me. Can I somehow manipulate the environment variables that are going to be used from nextcloud side?
In detail: APP_HOST is set to 127.0.0.1. Even though the container runs with network mode host, because of that ip adress, my home network can't connect to the container. It would need to be 0.0.0.0 for example, or the network ip of the host machine.
Screenshots If applicable, add screenshots to help explain your problem.
default nextcloud ExApp we ui deployment:
different machine in the home network:
With modified port:
my other machine in my home network:
Is this expected/wanted that the nextcloud installation needs to be near to the docker host?
If not and my usecase is valid, is there a way I can somehow tell nextcloud to deploy the chat backend with MY desired env vars? Or are they maybe even set into the image itself? Though the example env file also uses 0.0.0.0 for the Host...
Server logs (if applicable)
Context Chat Backend logs (if applicable, from the docker container)
Setup Details (please complete the following information):