Skip to content

Set default value for trusted proxies - #891

Closed
kesselb wants to merge 2 commits into
masterfrom
feature/trusted_proxies
Closed

Set default value for trusted proxies#891
kesselb wants to merge 2 commits into
masterfrom
feature/trusted_proxies

Conversation

@kesselb

Copy link
Copy Markdown
Contributor

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 tilospOctober 8, 2019 13:23
@kesselb
kesselbforce-pushed the feature/trusted_proxies branch from 3aca15a to cd77d84CompareOctober 8, 2019 13:23
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselb
kesselbforce-pushed the feature/trusted_proxies branch from cd77d84 to 0ea2b55CompareOctober 8, 2019 13:31
@kesselb

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

As discussed at #819 (comment) its bad.

@kesselbkesselb closed this Oct 13, 2019
@kesselb
kesselb deleted the feature/trusted_proxies branch October 13, 2019 16:04
Sign up for freeto 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.

1 participant

@kesselb