hotosm / galaxy-api

Backend to fetch data from Underpass
https://galaxy-api.hotosm.org/latest/redoc
GNU Affero General Public License v3.0
14 stars 5 forks source link

Making path , host url and max_area Threshold for rawdata endpoint Configurable #202

Closed kshitijrajsharma closed 2 years ago

kshitijrajsharma commented 2 years ago

Since path , host and area threshold will be changed based on the hosting scenario , user requirements time to time , instead of doing low level code changes plan is to make it configurable through config file , if it is supplied API will read it from there and adapt itself accordingly if not it will use default values , I discovered necessity of those variables when I migrated API from one machine to another machine with different storage configuration + different hosting URL