1
submitted 11 months ago by nxtmalteser@alien.top to c/main@selfhosted.forum

Hi All, I encountered a weird issue and I am stumped what could be going on.

I spun a cloud vm and installed docker, then proceeded to install portainer for ease of use.

I installed the two necessary containers for this instance , Nextcloud AIO and NGINX Proxy Manager.

I followed https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md

But for some sort of weird issue I could not connect with the reverse proxy to the nextcloud instance.

Even when i resorted to the nginx shell the localhost:11000 the place where nextcloud apache is hosted could not be resolved.

Managed to gain access to the container by using the docker virtual ip of the apache container, but i see this as no solution because the virtual ip can change whenever an update is applied.

I appreciate your views and solutions :)

top 5 comments
sorted by: hot top controversial new old
[-] chinstrap@lemmy.ml 1 points 11 months ago

sometimes during setups the env variable is not applied for some reason. you can manually enter the supported domains to config/config.php. maybe that's the cause

[-] szaimen@alien.top 1 points 11 months ago
[-] Whispzy@alien.top 1 points 11 months ago

Short and easy answer is switch to ”Caddy” search for caddy reverse proxy. Best thing i have ever used in terms of proxy 😁

[-] ProbablePenguin@alien.top 1 points 11 months ago

That will not solve OPs problem.

[-] ProbablePenguin@alien.top 1 points 11 months ago

IMO Nextcloud AIO is a mess that doesn't work properly for anyone used to docker and docker networking. It makes lots of bad assumptions about how things are configured.

Managed to gain access to the container by using the docker virtual ip of the apache container, but i see this as no solution because the virtual ip can change whenever an update is applied.

The reverse proxy docs have something in the section "Running the Reverse Proxy in a Docker container on the same server"

It sounds like they want you to use network mode host on the NGP container which is dumb, but should work in theory. Then you can use localhost in NGP.

this post was submitted on 22 Nov 2023
1 points (100.0% liked)

Self-Hosted Main

504 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS