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

Fix redirect issue when docker is behind an other reverse proxy

Open thelittlefireman opened this issue 1 year ago • 2 comments
trafficstars

thelittlefireman avatar May 20 '24 23:05 thelittlefireman

@crazy-max Do you want me to edit something for getting this pr merged ? regards

thelittlefireman avatar Jun 02 '24 10:06 thelittlefireman

up ?

thelittlefireman avatar Jun 24 '24 17:06 thelittlefireman

Fix redirect issue when docker is behind an other reverse proxy

Can you clarify what the issue is? I prefer to keep relative path as default and avoid another round trip. If you want you can set SUBDIR=$scheme://$host. I'm closing this in the meantime but if you still have an problem, can you open an issue please? Thanks

crazy-max avatar Oct 05 '24 14:10 crazy-max

@crazy-max The issue is about well-known endpoints do not work behind a reverse proxy.

Cause 302 redirect to hostname and internal port and not 443 (frontal reverse proxy)

Thanks for the suggestion, i try. The internal nginx configuration looks good but due to this code : https://github.com/crazy-max/docker-nextcloud/blob/master/rootfs%2Fetc%2Fcont-init.d%2F03-config.sh#L222 M'y config.php is setup like this :

'overwritewebroot' => '$scheme://$host'

and so I'm redirected to https://nextcloud.xxxx.xx/$scheme://$host/login and so it's not working.

thelittlefireman avatar Nov 07 '24 00:11 thelittlefireman

The internal nginx configuration looks good but due to this code : https://github.com/crazy-max/docker-nextcloud/blob/master/rootfs%2Fetc%2Fcont-init.d%2F03-config.sh#L222 M'y config.php is setup like this :

'overwritewebroot' => '$scheme://$host'

Ah right forgot about overwritewebroot

crazy-max avatar Nov 07 '24 08:11 crazy-max