Correct configuration for running nextcloud container behind traefik under subdomain/subtopic

Hi there,

I have a question…
Could somebody help me figure out the correct configuration for running a nextcloud(apache) docker container behind a traefik proxy accessible via a subdomain/subtopic?

I got a working setup, but it is still throwing setup-warnings (the “.well-known” kind). After inspection of the ajax requests (sent while loading the adminconfig site) I found out that these do not include the subdomain/subtopic.
I have the feeling that this setup is a bit hacky/complicated, which I’d like to change.

My question now is:
What is the correct (no setup warnings) way to configure this (easiest :pray:) and what would the config (docker-compose, config.php, …) look like for the domain my.cloud.example.com/nc ?

1 Like