Skip to content

Conversation

@DaCHack
Copy link

@DaCHack DaCHack commented Mar 26, 2025

Adding prominent hint to Traefik users adding the Traefik container to the aio network to change the server domain during the installation process. The nextcloud-aio-apache container is not in place as indicated in the documentation at this point in time

Adding prominent hint to Traefik users adding the Traefik container to the aio network to change the server domain during the installation process. The nextcloud-aio-apache container is not in place as indicated in the documentation at this point in time

Signed-off-by: DaCHack <[email protected]>
loadBalancer:
servers:
#When adding Traefik to the aio network: This needs to be changed in the installation process! Point this to nextcloud-aio-domaincheck first, then change to nextcloud-aio-apache after the domaincheck
- url: "http://localhost:11000" # Adjust to match APACHE_PORT and APACHE_IP_BINDING. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#adapting-the-sample-web-server-configurations-below
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, if you read through the documentation mentioned here: https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#adapting-the-sample-web-server-configurations-below, you would have seen that pointing at nextcloud-aio-apache is the solution to your problem

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was actually the Root cause of my problem. Apache does not get created at the Point of the domaincheck. Thus, nextcloud-aio-apache cannot be found by Traefik.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be a problem as the domaincheck container uses an alias:

// Add a secondary alias for domaincheck container, to keep it as similar to actual apache controller as possible.
// If a reverse-proxy is relying on container name as hostname this allows it to operate as usual and still validate the domain
// The domaincheck container and apache container are never supposed to be active at the same time because they use the same APACHE_PORT anyway, so this doesn't add any new constraints.
$alias = ($container->GetIdentifier() === 'nextcloud-aio-domaincheck') ? 'nextcloud-aio-apache' : '';

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting! Seems this did not work for me. Traefik always reported there is no such host.

@szaimen szaimen added 3. to review Waiting for reviews documentation Improvements or additions to documentation labels Mar 26, 2025
@szaimen szaimen marked this pull request as draft March 26, 2025 09:18
@DaCHack DaCHack marked this pull request as ready for review March 30, 2025 08:48
@szaimen szaimen added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Apr 17, 2025
@szaimen szaimen marked this pull request as draft June 18, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants