docker-nextcloud
docker-nextcloud copied to clipboard
Fix redirect issue when docker is behind an other reverse proxy
@crazy-max Do you want me to edit something for getting this pr merged ? regards
up ?
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
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.
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#L222M'y config.php is setup like this :'overwritewebroot' => '$scheme://$host'
Ah right forgot about overwritewebroot