-
Problem descriptionI have an instance of Titiler running in a docker container, which is in turn proxied using Apache. The dockerized app is running under HTTP, but the Apache server serves traffic over HTTPS. Requests to When I use the Expected OutputThe COG loads Environment InformationUsing Titiler 0.15.5 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I think the solution to this is that the factory.url_for method (https://github.com/developmentseed/titiler/blob/main/src/titiler/core/titiler/core/factory.py#L202) needs to more carefully detect the server |
Beta Was this translation helpful? Give feedback.
-
Hi @tayden ref https://github.com/developmentseed/titiler/discussions?discussions_q=is%3Aopen+proxy |
Beta Was this translation helpful? Give feedback.
-
Awesome, thanks for the help @vincentsarago! Following #345, the solution in the end was to add Apache config:
Docker compose file:
|
Beta Was this translation helpful? Give feedback.
Awesome, thanks for the help @vincentsarago!
Following #345, the solution in the end was to add
FORWARDED_ALLOW_IPS: "*"
as an environment variable to my docker config, and then set some headers in my Apache config. Here's the relevant files for anyone coming across this with a similar setup.Apache config:
Docker compose file: