User:Kannix/overpass
Jump to navigation
Jump to search
systemd-job overpass.service
[Unit] Description=overpass [Service] ExecStartPre=/bin/sh -c "rm -f /srv/osm3s-db/osm3s* || true" ExecStartPre=/bin/sh -c "rm -f /dev/shm/osm3s* || true" ExecStart=/srv/osm3s/bin/dispatcher --osm-base --meta --db-dir=/srv/osm3s-db [Install] WantedBy=multi-user.target
nginx overpass-api configuration
location /cgi-bin {
gzip off;
root /srv/osm3s;
fastcgi_read_timeout 900;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}