baikal-docker icon indicating copy to clipboard operation
baikal-docker copied to clipboard

docker nginx .well-known redirects don't include port number

Open Skivling opened this issue 3 months ago • 4 comments

Is there documentation on how to properly configure baikal with a port number? It's been working with various apps, but with planify it doesn't work because the port number isn't put in the redirect or something.

See https://github.com/alainm23/planify/issues/1743

Skivling avatar Sep 07 '25 23:09 Skivling

Hello I just made PR to fix this issue: https://github.com/ckulka/baikal-docker/pull/301, hope it helps.

pmaldera avatar Sep 08 '25 20:09 pmaldera

Thank you! So I can test it now, what file did you edit? My docker container doesn't have a /files/nginx.conf. Do I make the changes to /etc/nginx/nginx.conf? (but that file looks very different to the one your PR edits).

Skivling avatar Sep 08 '25 21:09 Skivling

You can see my changes here.

Remplacing /dav.php by $scheme://$http_host/dav.php in the rewrite rules helps keeping the request scheme (http or https) and the request host (including port if it was requested which should help your case).

pmaldera avatar Sep 09 '25 06:09 pmaldera

Oh I found it! Within a docker container, the file I have to edit it /etc/nginx/conf.d/default.conf (that corresponds to the one you edit in your PR).

It worked 🎉 !! Thank you so much!

Skivling avatar Sep 09 '25 10:09 Skivling