Skip to content

Wrong protocol for factory generated URLs #728

Closed Answered by tayden
tayden asked this question in Q&A
Discussion options

You must be logged in to vote

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:

<location /titiler>
        RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
        RequestHeader set X-Forwarded-SSL expr=%{HTTPS}
        ProxyPass http://localhost:9096
        ProxyPassReverse http://localhost:9096
</location>

Docker compose file:

version: "3.8"

services:
  titiler:
    image: ghcr.io/developmentseed/titiler:latest
    environment:
      PORT: 8000
   …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tayden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #727 on November 16, 2023 09:18.