Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Use https with X-Forwarded-Proto #92

Closed
daliborjanak opened this issue Dec 6, 2016 · 1 comment
Closed

Use https with X-Forwarded-Proto #92

daliborjanak opened this issue Dec 6, 2016 · 1 comment
Assignees

Comments

@daliborjanak
Copy link
Collaborator

We need to change protocol detection. Is server have https only via CloudFlare than it retturns http in urls. Cloudflare give there a header "X-Forwarded-Proto: https"
add to line https://github.com/klokantech/tileserver-php/blob/master/tileserver.php#L1231 something like

or $_SERVER['X-Forwarded-Proto'] == 'https'
@daliborjanak
Copy link
Collaborator Author

Implemented

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant