Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

571 B
Raw Blame
server {
    listen       80;
    server_name  localhost;

    root   /usr/share/nginx/html;

    # Allow CORS for JSON files
    location ~ \.json$ {
        add_header 'Access-Control-Allow-Origin' '*';
	    add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
    }

    location ~ \.pbf$ {
        expires 365d;
    }

    location /assets {
        expires 365d;
    }

    location /icons {
	    expires 365d;
    }

    location /robots.txt {
        expires 1d;
    }

    location / {
        expires 60s;
        index  index.html index.htm;
    }
}