1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Softcode osm-vector-maps/templates/osm-vector-maps-nginx.conf

This commit is contained in:
A Holt 2020-01-27 00:58:41 -05:00 committed by GitHub
parent 1c275cb88c
commit 92b475210b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,14 @@
# For downloadable regional vector tilesets
location /maps {
rewrite ^/maps(.*)$ /osm-vector-maps$1;
rewrite ^/maps(.*)$ /osm-vector-maps$1;
}
location /osm-vector-maps {
alias /library/www/osm-vector-maps;
alias {{ vector_map_path }}; # /library/www/osm-vector-maps
}
location ~ ^/osm-vector-maps/(.*)\.php(.*)$ {
alias /library/www/osm-vector-maps/$1.php$2;
alias {{ vector_map_path }}/$1.php$2; # /library/www/osm-vector-maps
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;