You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Logout URL doesn't work if using reverse proxy #30097
I recently switched from installing ownCloud to using the official ownCloud docker image. As I don't want to allow direct remote access to the docker containers, I'm using nginx as reverse proxy in front of owncloud-docker. The docker ports 80 and 443 are mapped to the system ports 8080 and 8443 respectively.
The setup works quite fine out-of-the-box but I'm not able to logout as the target URL of the logout link is https://localhost:8443/logout?requesttoken=... instead of https://owncloud.mydomain/logout?requesttoken=...
I already took a short look at the code and was able to fix the issue for me by changing this line in user.php from
However as I'm not familiar with the ownCloud code at all, I don't know if this is the correct fix or if linkToRouteAbsolute should already return the correct URL.
Steps to reproduce
Setup ownCloud behind reverse proxy
Try to logout
Expected behaviour
Logout should be using the remote accessible URL
Actual behaviour
Logout is using the internal URL
Server configuration
ownCloud version: 10.0.4
Updated from an older ownCloud or fresh install: fresh
Where did you install ownCloud from: Offcial owncloud-docker Dockerfile
Activity
dpeger commentedon Jan 11, 2018
If the above fix is correct, I can provide a pull request, if wanted.
dpeger commentedon Jan 18, 2018
I was able to fix the issue by adding
to
config.phpedouardberthe commentedon Sep 16, 2018
Same setup, same problem, the fix worked for me. Thanks !