Skip to content

Conversation

@kesselb
Copy link
Contributor

@kesselb kesselb commented Oct 8, 2019

There are some reports at nextcloud/server about broken url generation. This change should improve the situation for docker users.

Nginx and Traefik forward X-Forwarded-Host and X-Forwarded-Proto by default. Url generation should work out of the box with the ip of the reverse proxy listed in trusted_proxies.

@kesselb kesselb requested review from J0WI and tilosp October 8, 2019 13:23
@kesselb kesselb force-pushed the feature/trusted_proxies branch from 3aca15a to cd77d84 Compare October 8, 2019 13:23
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselb kesselb force-pushed the feature/trusted_proxies branch from cd77d84 to 0ea2b55 Compare October 8, 2019 13:31
@kesselb
Copy link
Contributor Author

kesselb commented Oct 8, 2019

Hmm. I see we use a different way for trusted domains. Adding the trusted proxies once on setup to config.php would save some getenv calls. Let me know which way do you prefer.

@kesselb
Copy link
Contributor Author

kesselb commented Oct 13, 2019

As discussed at #819 (comment) its bad.

@kesselb kesselb closed this Oct 13, 2019
@kesselb kesselb deleted the feature/trusted_proxies branch October 13, 2019 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants