Comment on Planning to selfhost images and calendar in addition to HTTP(S)

<- View Parent
diminou@lemmy.zip ⁨1⁩ ⁨day⁩ ago

OK you are thinking at it the wrong way : 80 and 443 are the default ports for the web access of any web application.

You are using docker with the nextcloud aio image. Which mean, you are deploying a docker container which contain the web application.

What you are doing is using arbitrary ports for the container. This could be 7777. Then, this is redirected to 443 inside the container, to the web application.

This is why you can actually use any port you want for your container. You are not really switching the port for nextcloud, only for the container.

This is why I suggested doing 444:443 in the docker-compose.yml file: you are exposing 444 to the container, to 443 inside the container.

And this is why you can actually use any ports for every web app you are going to host : apache will redirect to the port you want to the container, a’d docker will redirect inside the container to either 80 or 443 (or anything else needed for that web application).

source
Sort:hotnewtop