Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Use https with X-Forwarded-Proto #92

Description

@daliborjanak

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'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions