timeouts shorter
This commit is contained in:
parent
f94a888a92
commit
426b393b33
3 changed files with 2 additions and 41 deletions
|
|
@ -61,9 +61,7 @@ services:
|
||||||
- maps-net
|
- maps-net
|
||||||
ports:
|
ports:
|
||||||
- "3001:3001"
|
- "3001:3001"
|
||||||
volumes:
|
command: ["--listen-addresses", "0.0.0.0:3001"]
|
||||||
- ./martin.yaml:/martin.yaml:ro
|
|
||||||
command: ["--config", "/martin.yaml"]
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
listen_addresses: '0.0.0.0:3001'
|
|
||||||
|
|
||||||
postgres:
|
|
||||||
connection_string: 'postgres://maps:maps@postgres:5432/maps'
|
|
||||||
tables:
|
|
||||||
planet_osm_polygon:
|
|
||||||
schema: public
|
|
||||||
table: planet_osm_polygon
|
|
||||||
srid: 3857
|
|
||||||
geometry_column: way
|
|
||||||
geometry_type: GEOMETRY
|
|
||||||
minzoom: 0
|
|
||||||
maxzoom: 14
|
|
||||||
planet_osm_line:
|
|
||||||
schema: public
|
|
||||||
table: planet_osm_line
|
|
||||||
srid: 3857
|
|
||||||
geometry_column: way
|
|
||||||
geometry_type: GEOMETRY
|
|
||||||
minzoom: 0
|
|
||||||
maxzoom: 14
|
|
||||||
planet_osm_point:
|
|
||||||
schema: public
|
|
||||||
table: planet_osm_point
|
|
||||||
srid: 3857
|
|
||||||
geometry_column: way
|
|
||||||
geometry_type: GEOMETRY
|
|
||||||
minzoom: 0
|
|
||||||
maxzoom: 14
|
|
||||||
planet_osm_roads:
|
|
||||||
schema: public
|
|
||||||
table: planet_osm_roads
|
|
||||||
srid: 3857
|
|
||||||
geometry_column: way
|
|
||||||
geometry_type: GEOMETRY
|
|
||||||
minzoom: 0
|
|
||||||
maxzoom: 14
|
|
||||||
|
|
@ -12,7 +12,7 @@ impl MartinService {
|
||||||
pub fn new(config: &AppConfig) -> Self {
|
pub fn new(config: &AppConfig) -> Self {
|
||||||
Self {
|
Self {
|
||||||
client: reqwest::Client::builder()
|
client: reqwest::Client::builder()
|
||||||
.timeout(std::time::Duration::from_secs(10))
|
.timeout(std::time::Duration::from_secs(60))
|
||||||
.no_gzip() // Don't decompress; vector_map_tiles expects gzip-compressed MVT
|
.no_gzip() // Don't decompress; vector_map_tiles expects gzip-compressed MVT
|
||||||
.build()
|
.build()
|
||||||
.expect("Failed to build HTTP client"),
|
.expect("Failed to build HTTP client"),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue