Skip to content

Commit

Permalink
imagery: fixes for host and https
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Jan 9, 2024
1 parent 3489139 commit 036734d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cookbooks/imagery/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@
not_if { ::File.exist?("/usr/share/proj/uk_os_OSTN15_NTv2_OSGBtoETRS.tif") }
end

nginx_site "default" do
template "nginx_default.conf.erb"
directory "/srv/imagery/default"
end
# nginx_site "default" do
# template "nginx_default.conf.erb"
# directory "/srv/imagery/default"
# end

systemd_tmpfile "/run/mapserver-fastcgi" do
type "d"
Expand Down
4 changes: 2 additions & 2 deletions cookbooks/imagery/templates/default/nginx_titiler.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ server {
gzip_comp_level 9;
gzip_vary on;

location /api/v1/titiler {
location / {
rewrite ^/api/v1/titiler(.*)$ $1 break;
proxy_pass http://localhost:8080;
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;
}
}

0 comments on commit 036734d

Please sign in to comment.