Skip to content

Commit

Permalink
imagery: fix proto headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Jan 10, 2024
1 parent 76647c2 commit d0df16b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cookbooks/imagery/templates/default/nginx_titiler.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ server {
location /api/v1/titiler {
rewrite ^/api/v1/titiler(.*)$ $1 break;
proxy_pass http://localhost:8080;
proxy_set_header HOST $host;
proxy_set_header Host $host;
proxy_set_header Referer $http_referer;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-SSL on;
proxy_redirect off;
}
}

0 comments on commit d0df16b

Please sign in to comment.