IMLS / estimating-wifi

Estimating Wifi is a pilot project to automate the censusing of proximal wifi devices via low-cost and open source tools.
https://10x.gsa.gov/projects/shared-components-for-museums-and-libraries/
Other
10 stars 3 forks source link

fix up defaults and .ini file #349

Closed bklaas closed 1 year ago

bklaas commented 1 year ago

What I ended up going with was the following: defaults in the Go code are going to be for scheme = http , host = localhost, port = 80, and api_uri = " " then the default .ini file will overwrite all of those with

[api]
host=statspilot.galibs.org
scheme=https
port=443
api_uri=/api
presences_uri=/rpc/update_presence
heartbeat_uri=/rpc/beat_the_heart
login_uri=/rpc/login

api_uri is new, it goes in between port and the other *_uri params. For our prod server, it's the endpoint /api

this would allow for you to setup for local backend by either removing the [api] section or re -configuring it as needed. but default out-of-the-box install behavior will be for production use by end users, sending data to statspilot.galibs.org and the proper URI as specified in the .ini