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
|
||||
ports:
|
||||
- "3001:3001"
|
||||
volumes:
|
||||
- ./martin.yaml:/martin.yaml:ro
|
||||
command: ["--config", "/martin.yaml"]
|
||||
command: ["--listen-addresses", "0.0.0.0:3001"]
|
||||
depends_on:
|
||||
- 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 {
|
||||
Self {
|
||||
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
|
||||
.build()
|
||||
.expect("Failed to build HTTP client"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue